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.h | |
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.h')
-rw-r--r-- | kern/counters.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kern/counters.h b/kern/counters.h index bfa9b44e..aa1e739b 100644 --- a/kern/counters.h +++ b/kern/counters.h @@ -69,6 +69,9 @@ extern mach_counter_t c_stacks_current; extern mach_counter_t c_stacks_max; extern mach_counter_t c_stacks_min; extern mach_counter_t c_stacks_total; +extern mach_counter_t c_stack_alloc_hits; +extern mach_counter_t c_stack_alloc_misses; +extern mach_counter_t c_stack_alloc_max; extern mach_counter_t c_clock_ticks; extern mach_counter_t c_ipc_mqueue_send_block; extern mach_counter_t c_ipc_mqueue_receive_block_user; |