1 /* 2 * Copyright 2008-2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef OPTIONS_H 6 #define OPTIONS_H 7 8 #include <stdio.h> 9 10 #include <OS.h> 11 12 13 struct Options { 14 Options() 15 : 16 interval(1000), 17 stack_depth(5), 18 output(NULL), 19 callgrind_directory(NULL), 20 profile_all(false), 21 profile_kernel(true), 22 profile_loading(false), 23 profile_teams(true), 24 profile_threads(true), 25 analyze_full_stack(false) 26 { 27 } 28 29 bigtime_t interval; 30 int32 stack_depth; 31 FILE* output; 32 const char* callgrind_directory; 33 bool profile_all; 34 bool profile_kernel; 35 bool profile_loading; 36 bool profile_teams; 37 bool profile_threads; 38 bool analyze_full_stack; 39 }; 40 41 42 extern Options gOptions; 43 extern const char* kCommandName; 44 45 46 47 #endif // OPTIONS_H 48 49