Skip to content

Confusing behaviour in area selection of multiple perf sample types #4893

@LalitMaganti

Description

@LalitMaganti

Here's an example of an area selection I made just now

Image

So this was a trace with many different types of callstacks involved. In #4638, @cphlipot1 changed things so that, by default, the callstacks use the perf counter to weight the flamegraph. However, in mixed counter area selections like this, this can be quite misleading as you're only really seeing the callstacks visualized for one of the tracks you selected not all of them.

Some ideas:

  1. We should make the flamegraph universally show sample count by default. This is a slight revert of ui: weight flamegraphs by perf event count #4638 but is intuitive and clear for most people's usecases but will be annoying when you do care about the counter
  2. We should do nothing - IMO not preferred due to the surprise factor.
  3. We could make it so that if there's a single counter, we use the counter by default and if multiple we use sample count by default.

Personally, I'm leaning towards 3 but open to suggestions.

@cphlipot1 @rsavitski for thoughts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions