summaryrefslogtreecommitdiff
path: root/Kernel/Profiling.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-22 10:05:03 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-22 10:09:54 +0100
commit983b4bd9f244d8e31d8315e6f3c8e24a8210dbd9 (patch)
tree43f754b3d859f5d41878c78b9e260e2e343ab8e8 /Kernel/Profiling.h
parent94652fd2fbf8cc79dc8446ea38b366c0464d6d98 (diff)
downloadserenity-983b4bd9f244d8e31d8315e6f3c8e24a8210dbd9.zip
Kernel+ProfileViewer: Move symbolication to userspace for time profiles
This makes the time profiles look like the memory profiles so we can use the userspace symbolication code in ProfileViewer.
Diffstat (limited to 'Kernel/Profiling.h')
-rw-r--r--Kernel/Profiling.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Kernel/Profiling.h b/Kernel/Profiling.h
index d2539e7b62..d94c81ece0 100644
--- a/Kernel/Profiling.h
+++ b/Kernel/Profiling.h
@@ -43,10 +43,11 @@ struct Sample {
i32 tid;
u64 timestamp;
u32 frames[max_stack_frame_count];
- u32 offsets[max_stack_frame_count];
- String symbolicated_frames[max_stack_frame_count];
};
+extern u32 pid();
+extern String& executable_path();
+
Sample& next_sample_slot();
void start(Process&);
void stop();