Created
December 15, 2016 00:13
-
-
Save cep21/1c75479645031c92e5408d6bbfe3424f to your computer and use it in GitHub Desktop.
pprof from console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> go tool pprof 'localhost:6060/debug/pprof/my_experiment_thing?debug=1' | |
Fetching profile from http://localhost:6060/debug/pprof/my_experiment_thing?debug=1 | |
Saved profile in /Users/.../pprof/pprof.localhost:6060.my_experiment_thing.007.pb.gz | |
Entering interactive mode (type "help" for commands) | |
(pprof) top30 | |
6 of 6 total ( 100%) | |
flat flat% sum% cum cum% | |
6 100% 100% 6 100% main.usesAResource | |
0 0% 100% 2 33.33% main.main.func3 | |
0 0% 100% 2 33.33% net/http.(*ServeMux).ServeHTTP | |
0 0% 100% 2 33.33% net/http.(*conn).serve | |
0 0% 100% 2 33.33% net/http.HandlerFunc.ServeHTTP | |
0 0% 100% 2 33.33% net/http.serverHandler.ServeHTTP | |
0 0% 100% 6 100% runtime.goexit | |
(pprof) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment