Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
58023: pprofui: allow ?seconds to be passed to heap, goroutine, etc r=knz a=tbg In Go [1.15], the pprof http handlers got a new feature: All profile endpoints now support a "seconds" parameter. When present, the endpoint profiles for the specified number of seconds and reports the difference. The meaning of the "seconds" parameter in the cpu profile and the trace endpoints is unchanged. This is now available via the pprofui as well. For discoverability, a link has been added to the debug section of the console which I expect to see a fair bit of usage: a 5s history of allocation counts. Previously, we were only able to look at the lifetime allocation counts or the currently actively referenced objects. But my feeling is that we care a lot more about which parts of the code are allocation heavy at any given moment in time, which is something the endpoints now provide. Previously, one would have had to take two consecutive profiles, and use the `-base` option to [pprof]. [1.15]: https://golang.org/doc/go1.15 [pprof]: https://github.com/google/pprof/blob/master/doc/README.md Release note(ui change): The advanced debug section's `pprofui` links now support the `?seconds=x` parameter throughout. Co-authored-by: Tobias Grieger <[email protected]>
- Loading branch information