diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-13 22:14:07 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-14 00:35:57 +0200 |
commit | c41f13f10b8a78c86aa193271dd702e2d9d043ef (patch) | |
tree | d0d2cd95c07b56ccfde20ae8b1fd31fcb1209364 /Userland/DevTools/Profiler/Profile.h | |
parent | 8614d18956f90edb08c5057f8448493b4cd3315c (diff) | |
download | serenity-c41f13f10b8a78c86aa193271dd702e2d9d043ef.zip |
Kernel+Profiler: Track lost time between profiler timer ticks
We can lose profiling timer events for a few reasons, for example
disabled interrupts or system slowness. This accounts for lost
time between CPU samples by adding a field lost_samples to each
profiling event which tracks how many samples were lost immediately
preceding the event.
Diffstat (limited to 'Userland/DevTools/Profiler/Profile.h')
-rw-r--r-- | Userland/DevTools/Profiler/Profile.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/DevTools/Profiler/Profile.h b/Userland/DevTools/Profiler/Profile.h index 3aec06d1e8..05292dd87c 100644 --- a/Userland/DevTools/Profiler/Profile.h +++ b/Userland/DevTools/Profiler/Profile.h @@ -166,6 +166,7 @@ public: String executable; int pid { 0 }; int tid { 0 }; + u32 lost_samples { 0 }; bool in_kernel { false }; Vector<Frame> frames; }; |