commit | 0c3c35ec16cb5d052368db9c54fe932f08e2745b | [log] [tgz] |
---|---|---|
author | Raul Silvera <rsilvera@google.com> | Wed Sep 21 13:14:55 2016 -0700 |
committer | Raul Silvera <rsilvera@google.com> | Wed Sep 21 13:14:55 2016 -0700 |
tree | 815ddd02cec5f4c37767c7b0f3df8f16342f7816 |
first commit
The perf_to_profile
binary can be used to turn a perf.data file, which is generated by the linux profiler, perf, into a profile.proto file which can be visualized using the tool pprof.
For details on pprof, see https://github.com/google/pprof
THIS IS NOT AN OFFICIAL GOOGLE PRODUCT
make perf_to_profile
Profile a command using perf, for example:
perf record /bin/ls
The example command will generate a profile named perf.data, you should convert this into a profile.proto then visualize it using pprof:
perf_to_profile perf.data profile.pb pprof -web profile.pb
Recent versions of pprof will automatically invoke perf_to_profile
:
pprof -web perf.data