Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit 80e68e6

Browse files
committed
feat: add export_perf_data argument
1 parent 232b7bd commit 80e68e6

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

wperf/arg_parser.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,12 @@ namespace ArgParser {
243243
L"Enable timeline mode (count multiple times with specified interval). Use `-i` to specify timeline interval, and `-n` to specify number of counts.",
244244
{}
245245
);
246-
246+
arg_parser_arg_opt export_perf_data_opt = arg_parser_arg_opt::arg_parser_arg_opt(
247+
L"--export_perf_data",
248+
{},
249+
L"",
250+
{}
251+
);
247252

248253
#pragma endregion
249254

@@ -417,6 +422,7 @@ namespace ArgParser {
417422
&interval_arg,
418423
&iteration_arg,
419424
&dmc_arg,
425+
&export_perf_data_opt,
420426
&extra_args_arg
421427
};
422428

wperf/user_request.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -604,12 +604,7 @@ void user_request::parse_raw_args(ArgParser::arg_parser& parsed_args, const stru
604604
m_outputType = TableType::JSON;
605605
m_out.m_isQuiet = true;
606606
}
607-
// TODO: Check why This flag is not documented
608-
//if (a == L"--export_perf_data")
609-
//{
610-
// do_export_perf_data = true;
611-
// continue;
612-
//}
607+
do_export_perf_data = parsed_args.export_perf_data_opt.is_set();
613608

614609

615610
if (parsed_args.events_arg.is_set())

0 commit comments

Comments
 (0)