Skip to content

Add --cp flag to flamegraph command to use same colormap for all graphs

Christoph Hasse requested to merge patch-1 into master

as per doc of flamegraph:

If you use the --cp option, it will use the $colors selection and randomly generate the palette like normal.
Any future flamegraphs created using the --cp option will use the same palette map.
Any new symbols from future flamegraphs will have their colors randomly generated using the $colors selection.

This would make it easier to compare flamegraphs across different runs and different scenarios.
Given that all tests are run on the same machine, we can just let the generated palette.map file live on the machine and it will be picked up automatically by any future tests.

Merge request reports