diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-15 19:43:12 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-15 19:43:12 +0200 |
commit | e9c0f4567dae2ca6c3a9cc377d8f65b25ced74e9 (patch) | |
tree | 717bb1e9e91f4fe8ff9451eb545d87486cebb019 /Kernel/kmalloc.h | |
parent | 13041f894fbfcb89b78cd1dfb18f3ca5072eb62a (diff) | |
download | serenity-e9c0f4567dae2ca6c3a9cc377d8f65b25ced74e9.zip |
Kernel+ProcessManager: Expose the number of kmalloc/kfree calls.
This will be very helpful in tracking down unwanted kmalloc traffic. :^)
Diffstat (limited to 'Kernel/kmalloc.h')
-rw-r--r-- | Kernel/kmalloc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/kmalloc.h b/Kernel/kmalloc.h index 19e9fb9644..001d22da5a 100644 --- a/Kernel/kmalloc.h +++ b/Kernel/kmalloc.h @@ -18,6 +18,8 @@ extern volatile size_t sum_alloc; extern volatile size_t sum_free; extern volatile size_t kmalloc_sum_eternal; extern volatile size_t kmalloc_sum_page_aligned; +extern dword g_kmalloc_call_count; +extern dword g_kfree_call_count; inline void* operator new(size_t, void* p) { return p; } inline void* operator new[](size_t, void* p) { return p; } |