mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
ProfileViewer: Scale the sample columns by stack depth
From a nice suggestion by Nagy Tibor. :^)
This commit is contained in:
parent
7a64f55c0f
commit
be0b527cfc
3 changed files with 10 additions and 1 deletions
|
@ -31,6 +31,9 @@ Profile::Profile(const JsonArray& json)
|
|||
frame.offset = frame_object.get("offset").as_u32();
|
||||
sample.frames.append(move(frame));
|
||||
};
|
||||
|
||||
m_deepest_stack_depth = max((u32)frames_array.size(), m_deepest_stack_depth);
|
||||
|
||||
m_samples.append(move(sample));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue