From: Ryota Mibu Date: Thu, 19 Jan 2017 05:35:58 +0000 (+0000) Subject: Merge "Detail more on fencing mechanisms" X-Git-Tag: danube.1.RC1~27 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=bb2f2a536c1362db8a933379cd01363dfe5a3d74;hp=a0f36f238f99874baaad0fd47d9ada59cdee1cb5;p=doctor.git Merge "Detail more on fencing mechanisms" --- diff --git a/tests/profiler-poc.py b/tests/profiler-poc.py index 1b4379d4..71034781 100644 --- a/tests/profiler-poc.py +++ b/tests/profiler-poc.py @@ -18,8 +18,10 @@ Valid check points are: DOCTOR_PROFILER_T{00-09} See also: https://goo.gl/98Osig """ +import json import os +LOGFILE = 'performance-profile' PREFIX = 'DOCTOR_PROFILER' TOTAL_CHECK_POINTS = 10 MODULE_CHECK_POINTS = ['T00', 'T01', 'T04', 'T05', 'T06', 'T09'] @@ -76,6 +78,9 @@ def main(): profile = TEMPLATE.format(**tags) + logfile = open('{}.json'.format(LOGFILE), 'w') + logfile.write(json.dumps(tags)) + print profile if __name__ == '__main__':