mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
Kernel+ProcessManager: Expose the number of kmalloc/kfree calls.
This will be very helpful in tracking down unwanted kmalloc traffic. :^)
This commit is contained in:
parent
13041f894f
commit
e9c0f4567d
Notes:
sideshowbarker
2024-07-19 14:42:02 +09:00
Author: https://github.com/awesomekling
Commit: e9c0f4567d
5 changed files with 25 additions and 8 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue