mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 04:17:34 +00:00
Kernel: Separate out the symbol offsets in profile output
Instead of saying "main +39" and "main +57" etc, we now have a separate field in /proc/profile for the offset-into-the-symbol.
This commit is contained in:
parent
078ee798f7
commit
0f393148da
5 changed files with 19 additions and 8 deletions
|
@ -372,6 +372,7 @@ Optional<KBuffer> procfs$profile(InodeIdentifier)
|
|||
auto frame_object = frames_array.add_object();
|
||||
frame_object.add("address", JsonValue((u32)sample.frames[i]));
|
||||
frame_object.add("symbol", sample.symbolicated_frames[i]);
|
||||
frame_object.add("offset", JsonValue((u32)sample.offsets[i]));
|
||||
frame_object.finish();
|
||||
}
|
||||
frames_array.finish();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue