mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:55:08 +00:00
Kernel: More PID/TID typing
This commit is contained in:
parent
7bdf54c837
commit
bee08a4b9f
21 changed files with 67 additions and 60 deletions
|
@ -445,7 +445,7 @@ Optional<KBuffer> procfs$profile(InodeIdentifier)
|
|||
KBufferBuilder builder;
|
||||
|
||||
JsonObjectSerializer object(builder);
|
||||
object.add("pid", Profiling::pid());
|
||||
object.add("pid", Profiling::pid().value());
|
||||
object.add("executable", Profiling::executable_path());
|
||||
|
||||
auto array = object.add_array("events");
|
||||
|
@ -453,7 +453,7 @@ Optional<KBuffer> procfs$profile(InodeIdentifier)
|
|||
Profiling::for_each_sample([&](auto& sample) {
|
||||
auto object = array.add_object();
|
||||
object.add("type", "sample");
|
||||
object.add("tid", sample.tid);
|
||||
object.add("tid", sample.tid.value());
|
||||
object.add("timestamp", sample.timestamp);
|
||||
auto frames_array = object.add_array("stack");
|
||||
for (size_t i = 0; i < Profiling::max_stack_frame_count; ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue