opannotate_options.h revision cc2ee177dbb3befca43e36cfc56778b006c3d050
1/**
2 * @file opannotate_options.h
3 * Options for opannotate tool
4 *
5 * @remark Copyright 2003 OProfile authors
6 * @remark Read the file COPYING
7 *
8 * @author John Levon
9 * @author Philippe Elie
10 */
11
12#ifndef OPANNOTATE_OPTIONS_H
13#define OPANNOTATE_OPTIONS_H
14
15#include <string>
16#include <vector>
17
18#include "common_option.h"
19#include "path_filter.h"
20
21class profile_classes;
22
23namespace options {
24	extern std::string archive_path;
25	extern demangle_type demangle;
26	extern bool source;
27	extern bool assembly;
28	extern string_filter symbol_filter;
29	extern path_filter file_filter;
30	extern std::string output_dir;
31	extern std::vector<std::string> search_dirs;
32	extern std::vector<std::string> base_dirs;
33	extern std::vector<std::string> objdump_params;
34	extern double threshold;
35}
36
37/// classes of sample filenames to handle
38extern profile_classes classes;
39
40/**
41 * handle_options - process command line
42 * @param spec  profile specification
43 *
44 * Process the spec, fatally complaining on error.
45 */
46void handle_options(options::spec const & spec);
47
48#endif // OPANNOTATE_OPTIONS_H
49