apptrace: Adds support for converting SystemView traces to JSON format

This commit is contained in:
Alexey Gerenkov
2019-11-20 14:47:07 +03:00
parent 9b06b5cdf9
commit 884717fb2f
10 changed files with 4288 additions and 125 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env python
import json
import sys
if len(sys.argv) < 3:
sys.exit(-1)
objs = []
for i in range(1, len(sys.argv)):
f = open(sys.argv[i])
objs.append(json.load(f))
for i in range(1, len(objs)):
if objs[i - 1] != objs[i]:
sys.exit(-1)