You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before the process exits, the `TraceEvents` object is destroyed and the trace events are stringified and printed to `events.json` in:
8
+
9
+
TODO
10
+
11
+
The code that needs to be profiled can be done using the `peformance.measure()` and `peformance.mark()` APIs from [Node.js](https://nodejs.org/api/perf_hooks.html#performancemarkname-options) and the [Web](https://www.w3.org/TR/user-timing):
12
+
13
+
```js
14
+
peformance.mark("before");
15
+
// code that needs to be profiled
16
+
performance.measure("after", "before");
17
+
```
18
+
19
+
like it's being done in:
20
+
21
+
TODO
22
+
23
+
After running `node .`, the generated `events.json` file can be opened on [https://ui.perfetto.dev](https://ui.perfetto.dev) for visualization:
0 commit comments