We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func (ps *Session) uploadData(startTime, endTime time.Time) { if ps.isCPUEnabled() { pprof.StopCPUProfile() defer func() { pprof.StartCPUProfile(ps.cpuBuf) }() ps.upstream.Upload(&upstream.UploadJob{ Name: ps.appName, StartTime: startTime, EndTime: endTime, SpyName: "gospy", SampleRate: 100, Units: "samples", AggregationType: "sum", Format: upstream.FormatPprof, Profile: copyBuf(ps.cpuBuf.Bytes()), }) ps.cpuBuf.Reset() } //........ }
Now: No matter what config.SimpleRate is, cpu profile was always turned on after last uploadData finish.
config.SimpleRate
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Now:
No matter what
config.SimpleRate
is, cpu profile was always turned on after last uploadData finish.The text was updated successfully, but these errors were encountered: