diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-04-23 19:51:51 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-04-23 19:51:51 +0200 |
commit | 862b733dcbeabed8dd545e1c3b3e55bb4e4da52f (patch) | |
tree | f7a8cc035729126b11fe124e4ed040164375b83b /kern/counters.c | |
parent | bdd46d40d96c4da6f2b98d4e1b2aa04ba5f5848e (diff) | |
download | gnumach-862b733dcbeabed8dd545e1c3b3e55bb4e4da52f.tar.gz gnumach-862b733dcbeabed8dd545e1c3b3e55bb4e4da52f.tar.bz2 gnumach-862b733dcbeabed8dd545e1c3b3e55bb4e4da52f.zip |
kern: disable stack allocation counters by default
Disable the stack allocation counters by default. Casual checking
revealed that the hits-to-miss ratio is excellent.
* kern/thread.c (stack_alloc_{hits,misses,max}): Move variables...
* kern/counters.c: ... here, and add the usual counter prefix.
* kern/counters.h: New declarations.
Diffstat (limited to 'kern/counters.c')
-rw-r--r-- | kern/counters.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kern/counters.c b/kern/counters.c index 74fd42d1..0a0665bf 100644 --- a/kern/counters.c +++ b/kern/counters.c @@ -46,6 +46,9 @@ mach_counter_t c_stacks_current = 0; mach_counter_t c_stacks_max = 0; mach_counter_t c_stacks_min = 0; mach_counter_t c_stacks_total = 0; +mach_counter_t c_stack_alloc_hits = 0; +mach_counter_t c_stack_alloc_misses = 0; +mach_counter_t c_stack_alloc_max = 0; mach_counter_t c_clock_ticks = 0; mach_counter_t c_ipc_mqueue_send_block = 0; mach_counter_t c_ipc_mqueue_receive_block_user = 0; |