00001 /** 00002 * @file opannotate_options.h 00003 * Options for opannotate 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 OPANNOTATE_OPTIONS_H 00013 #define OPANNOTATE_OPTIONS_H 00014 00015 #include <string> 00016 #include <vector> 00017 00018 #include "common_option.h" 00019 #include "path_filter.h" 00020 00021 class profile_classes; 00022 00023 namespace options { 00024 extern demangle_type demangle; 00025 extern bool source; 00026 extern bool assembly; 00027 extern string_filter symbol_filter; 00028 extern path_filter file_filter; 00029 extern std::string output_dir; 00030 extern std::vector<std::string> search_dirs; 00031 extern std::vector<std::string> base_dirs; 00032 extern std::vector<std::string> objdump_params; 00033 extern double threshold; 00034 } 00035 00036 /// classes of sample filenames to handle 00037 extern profile_classes classes; 00038 00039 /** 00040 * handle_options - process command line 00041 * @param spec profile specification 00042 * 00043 * Process the spec, fatally complaining on error. 00044 */ 00045 void handle_options(options::spec const & spec); 00046 00047 #endif // OPANNOTATE_OPTIONS_H
1.6.1