71 #include <include/hpctoolkit-config.h> 84 #define ARG_Throw(streamArgs) DIAG_ThrowX(Args::Exception, streamArgs) 87 #define ARG_ERROR(streamArgs) \ 88 { std::ostringstream WeIrDnAmE; \ 89 WeIrDnAmE << streamArgs ; \ 90 printError(std::cerr, WeIrDnAmE.str()); \ 98 "profile-file [profile-file]*\n";
101 "hpcproftt generates textual dumps of call path profiles\n" 102 "recorded by hpcrun. The profile list may contain one or\n" 103 "more call path profiles.\n" 106 " -V, --version Print version information.\n" 107 " -h, --help Print this help.\n";
109 #define CLP CmdLineParser 110 #define CLP_SEPARATOR "!!!" 115 {
'V',
"version", CLP::ARG_NONE, CLP::DUPOPT_CLOB,
NULL,
117 {
'h',
"help", CLP::ARG_NONE, CLP::DUPOPT_CLOB,
NULL,
134 Args::Args(
int argc,
const char*
const argv[])
189 os <<
getCmd() <<
": " << msg << endl
190 <<
"Try '" <<
getCmd() <<
" --help' for more information." << endl;
204 static string cmd =
"hpcproftt";
236 if ( !(numArgs >= 1) ) {
237 ARG_ERROR(
"Incorrect number of arguments!");
241 for (
uint i = 0; i < numArgs; ++i) {
262 if (value ==
"thread") {
268 else if (value ==
"sum") {
276 else if (value ==
"stats") {
285 ARG_Throw(errTag <<
": Unexpected value received: '" << value <<
"'");
293 os <<
"Args.cmd= " <<
getCmd() << endl;
static void parseArg_metric(Args *args, const std::string &opts, const char *errTag)
bool isOpt(const char swShort) const
void printUsage(std::ostream &os) const
virtual const std::string & what() const
static void MetricFlg_clear(uint &flags, MetricFlg x)
uint64_t obj_procThreshold
bool profflat_computeFinalMetricValues
void parse(const OptArgDesc *optArgDescs, int argc, const char *const argv[])
unsigned int getNumArgs() const
void printVersion(std::ostream &os) const
void parse(int argc, const char *const argv[])
std::string out_db_experiment
virtual void dump(std::ostream &os=std::cerr) const
virtual std::string message() const
#define CmdLineParser_OptArgDesc_NULL_MACRO
std::vector< std::string > profileFiles
void printError(std::ostream &os, const char *msg) const
void Diagnostics_SetDiagnosticFilterLevel(int lvl)
static CmdLineParser::OptArgDesc optArgs[]
const std::string & getArg(unsigned int i) const
const std::string & getCmd() const
bool obj_metricsAsPercents
void dump(std::ostream &os=std::cerr) const
static void MetricFlg_set(uint &flags, MetricFlg x)