rsnext/scripts
OJ Kwon af23248627
feat(trace): next/trace to event format converter (#36281)
This PR adds a small utility script for the existing `next/trace` converts emitted output into chromium's trace event format (https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview?mode=html#). Converted output can be loaded in a couple of visualizers that understand trace event format. 

- `chrome://tracing`
- `https://ui.perfetto.dev/`

Technically it is possible to make generated event format to be compatible to chrome devtool's profiler as well, but that is not dealt with initial implementation.

This is very straightforward, naive conversion between generated trace to the specific format instead of trying to augment existing traces: in result, some of the values are dummy (pid, tid, category). Depends on usecases we can potentially expand & correct later if needed.

Below screenshot is perfetto from `bench/nested-deps`.

<img width="1166" alt="Screen Shot 2022-04-19 at 10 35 28 AM" src="https://user-images.githubusercontent.com/1210596/164062522-4d34a8c0-d66a-4c9e-9e15-08e0cd6d41a7.png">

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
2022-04-20 08:06:52 +00:00
..
send-trace-to-jaeger Simplify trace span id generation (#32946) 2022-01-02 21:22:01 +00:00
check-examples.sh Add ci script to check examples (#28009) 2021-08-14 13:34:40 -05:00
check-manifests.js Changed data fetching file name to overview to fix meta data title (#33232) 2022-01-27 09:14:14 -06:00
check-pre-compiled.bat fixes to allow lazy compilation for import() (#32441) 2021-12-14 11:33:04 +01:00
check-pre-compiled.sh fixes to allow lazy compilation for import() (#32441) 2021-12-14 11:33:04 +01:00
fetch-tags.mjs Update only fetch all tags for publish commits (#32337) 2021-12-09 16:36:18 -06:00
install-native.mjs build(next-swc): linux glibc compatible issue (#34481) 2022-02-18 16:04:43 +00:00
next-with-deps.sh Update repo scripts to separate folder (#26787) 2021-07-01 13:41:27 +02:00
publish-native.js Extract next-swc Rust code into its own package (#31635) 2021-11-21 12:59:56 +01:00
publish-release.sh Fix lerna publish for automation token (#28750) 2021-09-02 19:08:16 -04:00
release-stats.sh Update repo scripts to separate folder (#26787) 2021-07-01 13:41:27 +02:00
setup-wasm.mjs Chore/load bindings improvements (#32191) 2021-12-07 11:14:38 +01:00
trace-dd.mjs ci(trace): adjust agent env variables (#35790) 2022-03-31 15:23:23 -05:00
trace-next-server.js Update tracing to collect from reasons (#29975) 2021-10-18 17:01:02 +00:00
trace-to-event-format.mjs feat(trace): next/trace to event format converter (#36281) 2022-04-20 08:06:52 +00:00
trace-to-tree.mjs add trace-to-tree script to allow to visualize traces on the commandline (#29942) 2021-10-15 14:25:56 +00:00