diff options
author | Mike Dodd <mdodd@google.com> | 2010-11-17 11:12:26 -0800 |
---|---|---|
committer | Mike Dodd <mdodd@google.com> | 2010-11-17 13:38:54 -0800 |
commit | 8cfa702f803c5ef6a2b062a489a1b2cf66b45b5e (patch) | |
tree | 9e688c406914b1368096e2ac7b141509728324f9 /gui/oprof_start_config.h | |
parent | 8a572b129c9755959b4421970947aeda4119c3b7 (diff) | |
download | oprofile-8cfa702f803c5ef6a2b062a489a1b2cf66b45b5e.tar.gz |
oprofile 0.9.6android-sdk-3.0_r1android-sdk-3.0-preandroid-3.0_r1.3android-3.0_r1.2android-3.0_r1.1android-3.0_r1
Copy in the rest of the oprofile 0.9.6 tree so we have a source
copy to match the prebuilt binaries that are checked into
external/.
Change-Id: Iaac327571d5d583594a4194973bf256569061048
Diffstat (limited to 'gui/oprof_start_config.h')
-rw-r--r-- | gui/oprof_start_config.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/gui/oprof_start_config.h b/gui/oprof_start_config.h new file mode 100644 index 0000000..07b25d8 --- /dev/null +++ b/gui/oprof_start_config.h @@ -0,0 +1,56 @@ +/** + * @file oprof_start_config.h + * GUI startup config management + * + * @remark Copyright 2002 OProfile authors + * @remark Read the file COPYING + * + * @author John Levon + * @author Philippe Elie + */ + +#ifndef OPROF_START_CONFIG_H +#define OPROF_START_CONFIG_H + +#include <sys/types.h> +#include <string> +#include <iosfwd> + +/// Store the setup of one event +struct event_setting { + + event_setting(); + + uint count; + uint umask; + bool os_ring_count; + bool user_ring_count; +}; + +/** + * Store the general configuration of the profiler. + * There is no save(), instead opcontrol --setup must be + * called. This uses opcontrol's daemonrc file. + */ +struct config_setting { + config_setting(); + + void load(std::istream & in); + + uint buffer_size; + uint note_table_size; + std::string kernel_filename; + bool no_kernel; + bool verbose; + bool separate_lib; + bool separate_kernel; + bool separate_cpu; + bool separate_thread; + uint callgraph_depth; + uint buffer_watershed; + uint cpu_buffer_size; +}; + +std::istream & operator>>(std::istream & in, config_setting & object); + +#endif // ! OPROF_START_CONFIG_H |