00001 /** 00002 * @file opreport_options.h 00003 * Options for opreport tool 00004 * 00005 * @remark Copyright 2003 OProfile authors 00006 * @remark Read the file COPYING 00007 * 00008 * @author John Levon 00009 * @author Philippe Elie 00010 */ 00011 00012 #ifndef OPREPORT_OPTIONS_H 00013 #define OPREPORT_OPTIONS_H 00014 00015 #include <string> 00016 #include <vector> 00017 #include <iosfwd> 00018 00019 #include "common_option.h" 00020 #include "string_filter.h" 00021 #include "symbol_sort.h" 00022 00023 class profile_classes; 00024 class merge_option; 00025 00026 namespace options { 00027 extern demangle_type demangle; 00028 extern bool symbols; 00029 extern bool callgraph; 00030 extern bool debug_info; 00031 extern bool details; 00032 extern bool reverse_sort; 00033 extern bool exclude_dependent; 00034 extern sort_options sort_by; 00035 extern merge_option merge_by; 00036 extern bool global_percent; 00037 extern bool long_filenames; 00038 extern bool show_address; 00039 extern string_filter symbol_filter; 00040 extern bool show_header; 00041 extern bool accumulated; 00042 extern bool xml; 00043 extern std::string xml_options; 00044 } 00045 00046 /// All the chosen sample files. 00047 extern profile_classes classes; 00048 extern profile_classes classes2; 00049 00050 /** 00051 * handle_options - process command line 00052 * @param spec profile specification 00053 * 00054 * Process the spec, fatally complaining on error. 00055 */ 00056 void handle_options(options::spec const & spec); 00057 00058 #endif // OPREPORT_OPTIONS_H
1.6.1