In a previous post Profiling Software Using perf and Flame Graphs, we took a look at how to generate Flame Graphs from perf outputs. In this short follow-up, we will use Flame Graphs to process outputs from pt-pmp. Flame Graphs were not originally thought of for this purpose, but since pt-pmp outputs are similar to the folded samples (the result of using stackcollapse-perf.pl), we can take advantage of its functionality.
There are mainly two differences in the pt-pmp outputs:
- The first column is the number of threads with that same backtrace, and
- The function names are separated by a comma instead of a semicolon
Additionally, pt-pmp will print the date in the first line, so we’ll need to trim that part, too.
Lastly, before …
[Read more]