summaryrefslogtreecommitdiffstats
path: root/tests/profiler-poc.py
diff options
context:
space:
mode:
authorTomi Juvonen <tomi.juvonen@nokia.com>2017-02-02 15:20:38 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-02 15:20:38 +0000
commita65bd8e7807e486561017a716468d52a0ba144f9 (patch)
treee7a654cfc15f9e7531e5c954a4d3802ff561efd0 /tests/profiler-poc.py
parent06406611160b83a2ec90400db3b9e6b08d60ff95 (diff)
parenteac3701e474623103ac10d8238b5e406355a0724 (diff)
Merge "Fix bugs in profiler"
Diffstat (limited to 'tests/profiler-poc.py')
-rw-r--r--tests/profiler-poc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/profiler-poc.py b/tests/profiler-poc.py
index 71034781..408cb09a 100644
--- a/tests/profiler-poc.py
+++ b/tests/profiler-poc.py
@@ -21,7 +21,7 @@ See also: https://goo.gl/98Osig
import json
import os
-LOGFILE = 'performance-profile'
+OUTPUT = 'doctor_profiling_output'
PREFIX = 'DOCTOR_PROFILER'
TOTAL_CHECK_POINTS = 10
MODULE_CHECK_POINTS = ['T00', 'T01', 'T04', 'T05', 'T06', 'T09']
@@ -33,7 +33,7 @@ Total time cost: {total}(ms)
|Monitor|Inspector |Controller|Notifier|Evaluator |
|{M00} |{M01} |{M02} |{M03} |{M04} |
| | | | | | | | | |
-host down:{T00}| | | | | | | | |
+link down:{T00}| | | | | | | | |
raw failure:{T01}| | | | | | | |
found affected:{T02}| | | | | | |
set VM error:{T03}| | | | | |
@@ -78,7 +78,7 @@ def main():
profile = TEMPLATE.format(**tags)
- logfile = open('{}.json'.format(LOGFILE), 'w')
+ logfile = open('{}.json'.format(OUTPUT), 'w')
logfile.write(json.dumps(tags))
print profile