summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
author윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자 <jy910.yun@samsung.com>2019-07-01 12:44:43 +0900
committer이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>2019-07-01 12:44:43 +0900
commit1b387c896e528b8c41da2808a992318b3de65ca4 (patch)
tree11b1bd284065d15ee96927d845b3c089a3693e2f /tools
parent7c243523c7849be0dbb1c698e20c779f3f83ccc6 (diff)
downloadnnfw-1b387c896e528b8c41da2808a992318b3de65ca4.tar.gz
nnfw-1b387c896e528b8c41da2808a992318b3de65ca4.tar.bz2
nnfw-1b387c896e528b8c41da2808a992318b3de65ca4.zip
[kbenchmark] Separate the result file if it is not html reporter type (#5361)
This patch separates the result files if it is not html reporter type. Becuase other reporters store only one test result in one file. Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/kbenchmark/Driver.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/kbenchmark/Driver.cc b/tools/kbenchmark/Driver.cc
index 006fe9e28..376a85194 100644
--- a/tools/kbenchmark/Driver.cc
+++ b/tools/kbenchmark/Driver.cc
@@ -106,6 +106,7 @@ int main(int argc, char *argv[])
cfg.verbose = args.verbose();
cfg.title = test_name;
cfg.output_file = test_name + ext;
+ cfg.summary = true;
// Create ConfigFile object from config file
ConfigFile cf(args.config());
@@ -121,6 +122,13 @@ int main(int argc, char *argv[])
{
for (auto &c : cf)
{
+ if (reporter != "html")
+ {
+ std::string temp_name{test_name + std::string{"_"} + std::to_string(c.first)};
+ cfg.title = temp_name;
+ cfg.output_file = temp_name + ext;
+ }
+
nonius::parameters op_params = opl[cf.name()]->params(c.second);
cfg.params.map = cfg.params.map.merged(op_params);