summaryrefslogtreecommitdiff
path: root/kern/counters.h
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-04-23 19:51:51 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-04-23 19:51:51 +0200
commit862b733dcbeabed8dd545e1c3b3e55bb4e4da52f (patch)
treef7a8cc035729126b11fe124e4ed040164375b83b /kern/counters.h
parentbdd46d40d96c4da6f2b98d4e1b2aa04ba5f5848e (diff)
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kern/counters.h b/kern/counters.h
index bfa9b44..aa1e739 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;