add systemTraceEvents to merge for perfetto ftrace data

[ROCm/rocprofiler-systems commit: f518e09eab]
This commit is contained in:
Jianbing Chen
2021-08-30 09:20:31 -05:00
parent 869bbb4333
commit 1ff2dfed88
@@ -26,7 +26,12 @@ for trace in trace_files
todo = JSON.parsefile(f)
out["traceEvents"] = vcat(
out["traceEvents"],
todo["traceEvents"])
get(todo, "traceEvents", [])
)
out["systemTraceEvents"] = (*)(
get(out, "systemTraceEvents", ""),
get(todo, "systemTraceEvents", "")
)
end
output_file = replace("$(string(now())).json", ":" => "-")