Wall-clock and Off-CPU profiling go-test functions. Plus Thanks! #13
cameronelliott
started this conversation in
Show and tell
Replies: 1 comment
-
Good idea. I'll try to add this to the README. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @felixge, thanks for creating this package 🥳 , it's very hard to find examples of how to
do basic, old-fashion Off-CPU profiling, without starting from scratch with the pprof package.
This package makes it straightforward to do this type of profiling.
So I really appreciate your work in creating this.
One suggestion, you might show a simple example of using
the package without HTTP for profiling test methods.
I got confused that your package only works with HTTP profiling, where
I just wanted to Start() profiling, and stop it at the end of a TestXXX(t *t.testing) function.
(Rather than controlling duration using HTTP)
So a simple example (for Readme??) might help others that need to do wall-clock or Off-CPU profiling of go-test functions.
To view the profile use (where ./m is the binary):
Beta Was this translation helpful? Give feedback.
All reactions