1
Fork 0
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:
Andreas Kling 2019-12-15 18:08:20 +01:00
parent 7a64f55c0f
commit be0b527cfc
3 changed files with 10 additions and 1 deletions

View file

@ -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));
}