#include <cstdlib>#include <iostream>#include <sstream>#include <iterator>#include "op_config.h"#include "locate_images.h"#include "op_exception.h"#include "popt_options.h"#include "cverb.h"#include "common_option.h"#include "file_manip.h"#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <limits.h>
Go to the source code of this file.
Namespaces | |
| namespace | options |
Functions | |
| int | run_pp_tool (int argc, char const *argv[], pp_fct_run_t fct) |
| demangle_type | handle_demangle_option (string const &option) |
| merge_option | handle_merge_option (vector< string > const &mergespec, bool allow_lib, bool exclude_dependent) |
| bool | was_session_dir_supplied (void) |
Variables | |
| double | options::threshold = 0.0 |
| string | options::threshold_opt |
| string | options::session_dir |
| string | options::command_options |
| vector< string > | options::image_path |
| string | options::root_path |
Contains common options and implementation of entry point of pp tools and some miscelleaneous functions
Definition in file common_option.cpp.
| demangle_type handle_demangle_option | ( | string const & | option | ) |
Definition at line 246 of file common_option.cpp.
References dmt_none, dmt_normal, and dmt_smart.
Referenced by handle_options().

| merge_option handle_merge_option | ( | vector< string > const & | mergespec, | |
| bool | allow_lib, | |||
| bool | exclude_dependent | |||
| ) |
Definition at line 259 of file common_option.cpp.
References merge_option::cpu, merge_option::lib, options::merge_by, options, merge_option::tgid, merge_option::tid, and merge_option::unitmask.
Referenced by handle_options().

| int run_pp_tool | ( | int | argc, | |
| char const * | argv[], | |||
| pp_fct_run_t | fct | |||
| ) |
| argc | command line number of argument | |
| argv | command line argument pointer array | |
| fct | function to run to start this pp tool |
Provide a common entry to all pp tools, parsing all options, handling common options and providing the necessary try catch clause
Definition at line 218 of file common_option.cpp.
References get_options(), and op_exception::what().
Referenced by main().


| bool was_session_dir_supplied | ( | void | ) |
Answer the question 'did the user pass in a session-dir argument?'.
Definition at line 317 of file common_option.cpp.
Referenced by handle_options().

1.6.1