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 9 #include <stdio.h> 10 11 #include <OS.h> 12 13 14 struct Options { 15 Options() 16 : 17 interval(1000), 18 stack_depth(5), 19 output(NULL), 20 callgrind_directory(NULL), 21 profile_all(false), 22 profile_kernel(false), 23 profile_loading(false), 24 profile_teams(true), 25 profile_threads(true), 26 analyze_full_stack(false), 27 summary_result(false) 28 { 29 } 30 31 bigtime_t interval; 32 int32 stack_depth; 33 FILE* output; 34 const char* callgrind_directory; 35 bool profile_all; 36 bool profile_kernel; 37 bool profile_loading; 38 bool profile_teams; 39 bool profile_threads; 40 bool analyze_full_stack; 41 bool summary_result; 42 }; 43 44 45 extern Options gOptions; 46 extern const char* kCommandName; 47 48 49 #endif // OPTIONS_H 50 51