Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL] Fix sycl-prof JSON output (#7128)
This patch fixes a problem related to the JSON output. Every element of `"traceEvents"` has a comma appended, this is a problem in the case of the last element, e.g., ``` { "traceEvents": [ ... {"name": "piTearDown", ... , "ts": "16..81"}, <-- here is ], "displayTimeUnit":"ns" } ``` This comma prevents the display of the JSON output in `chrome://tracing/` or [speedscope](https://www.speedscope.app/) due to its invalid format. This patch solves the problem by adding an empty element before finalizing the JSON output.
- Loading branch information