summaryrefslogtreecommitdiffstats
path: root/doc/AnalyticsWebReport.py
diff options
context:
space:
mode:
authoritraviv <itraviv@cisco.com>2016-12-11 17:35:37 +0200
committeritraviv <itraviv@cisco.com>2016-12-11 17:35:52 +0200
commitd83a3f21745d6245f1cc2040e3e9cd704c7aadb0 (patch)
tree83a208b6455b19a6dcbe5d999cd67215921737a5 /doc/AnalyticsWebReport.py
parent296951010f94dbadba90d06ee4f56e1b221afd67 (diff)
changed trex_analytics to support detailed mode, generating a detailed table for test runs, also inserted machine information per setup to asciidoc. to use detailed mode run ./b build --performance-detailed at doc folder on trex-05
Signed-off-by: itraviv <itraviv@cisco.com>
Diffstat (limited to 'doc/AnalyticsWebReport.py')
-rwxr-xr-xdoc/AnalyticsWebReport.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/AnalyticsWebReport.py b/doc/AnalyticsWebReport.py
index bd4a9a2b..1806cab9 100755
--- a/doc/AnalyticsWebReport.py
+++ b/doc/AnalyticsWebReport.py
@@ -6,7 +6,7 @@ import time
import datetime
-def main(verbose = False):
+def main(verbose=False, detailed_test_stats=''):
if verbose:
print('Retrieving data from Google Analytics')
analytics = ac.initialize_analyticsreporting()
@@ -18,10 +18,13 @@ def main(verbose = False):
dest_path = os.path.join(os.getcwd(), 'build', 'images')
if verbose:
print('Saving data to %s' % dest_path)
- tr.create_all_data(ga_all_data_dict, setups, start_date, current_date, save_path = dest_path,
- add_stats='yes')
+ if detailed_test_stats:
+ print('generating detailed table for test results')
+ tr.create_all_data(ga_all_data_dict, setups, start_date, current_date, save_path=dest_path,
+ add_stats='yes', detailed_test_stats=detailed_test_stats)
if verbose:
print('Done without errors.')
+
if __name__ == "__main__":
main()