xref: /haiku/src/bin/debug/profile/Options.h (revision 893988af824e65e49e55f517b157db8386e8002b)
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(true),
23 		profile_loading(false),
24 		profile_teams(true),
25 		profile_threads(true),
26 		analyze_full_stack(false)
27 	{
28 	}
29 
30 	bigtime_t	interval;
31 	int32		stack_depth;
32 	FILE*		output;
33 	const char*	callgrind_directory;
34 	bool		profile_all;
35 	bool		profile_kernel;
36 	bool		profile_loading;
37 	bool		profile_teams;
38 	bool		profile_threads;
39 	bool		analyze_full_stack;
40 };
41 
42 
43 extern Options gOptions;
44 extern const char* kCommandName;
45 
46 
47 #endif	// OPTIONS_H
48 
49