Update the timer to properly handle recursion and deep call stacks

This commit is contained in:
2023-07-23 14:21:47 +01:00
parent f8cd7d253e
commit 8e17765774
2 changed files with 42 additions and 24 deletions

View File

@@ -27,9 +27,10 @@ typedef struct sample profiler_sample_t;
struct sample {
const char *title;
u64 first_start;
u64 start;
u64 duration;
u64 children_duration;
u64 exclusive_time;
u64 children_time;
u64 hit_count;
profiler_sample_t *parent;
};