mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
ProfileViewer: Add the ability to invert the profile tree
Inverting the tree turns all of the innermost stack frames into roots, allowing them to accumulate their total sample counts with other instances of the same frame being innermost. This is an essential feature of any cool profiler, and now we have it. :^)
This commit is contained in:
parent
5ddb747038
commit
fe421bd7b4
3 changed files with 57 additions and 16 deletions
|
@ -105,6 +105,9 @@ public:
|
|||
void clear_timestamp_filter_range();
|
||||
bool has_timestamp_filter_range() const { return m_has_timestamp_filter_range; }
|
||||
|
||||
bool is_inverted() const { return m_inverted; }
|
||||
void set_inverted(bool);
|
||||
|
||||
private:
|
||||
explicit Profile(const JsonArray&);
|
||||
|
||||
|
@ -123,4 +126,5 @@ private:
|
|||
u64 m_timestamp_filter_range_end { 0 };
|
||||
|
||||
u32 m_deepest_stack_depth { 0 };
|
||||
bool m_inverted { false };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue