Code Review
/
doctor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 2:
a0f36f2
)
Merge "Detail more on fencing mechanisms"
author
Ryota Mibu
<r-mibu@cq.jp.nec.com>
Thu, 19 Jan 2017 05:35:58 +0000
(
05:35
+0000)
committer
Gerrit Code Review
<gerrit@opnfv.org>
Thu, 19 Jan 2017 05:35:58 +0000
(
05:35
+0000)
tests/profiler-poc.py
patch
|
blob
|
history
diff --git
a/tests/profiler-poc.py
b/tests/profiler-poc.py
index
1b4379d
..
7103478
100644
(file)
--- 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__':