microsoft / perfview

PerfView is a CPU and memory performance-analysis tool
http://channel9.msdn.com/Series/PerfView-Tutorial
MIT License
4.14k stars 707 forks source link

Flame graph: color by groupings #1392

Open roji opened 3 years ago

roji commented 3 years ago

Perfview already has excellent support for grouping (GroupPats), it really seems useful for flame graphs to color stack frames based on groups.

brianrob commented 3 years ago

cc: @adamsitnik

adamsitnik commented 3 years ago

I am afraid that I won't have the time to implement it anytime soon. The best I can do is to provide some hints for contributors who would be interested in implementing that:

The Model is built here and most probably CallTreeNode contains information about grouping. Then the colors are generated here and selected here.

I've not spent too much time thinking about it, but you should be able to extend the selection of the color to use information from CallTreeNode.

Additional requirements that need to be kept in mind:

brianrob commented 3 years ago

Thanks @adamsitnik. Appreciate the input. I'll keep this around in case folks want to contribute to this work.