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
|`events_to_perfetto(events, path)`| Write Chrome trace JSON/JSON.GZ and split overlapping slices into adjacent lanes by default|
73
73
|`TagTable(names)`| Map tag names ↔ integer IDs |
74
74
|`PostProcessContext`| Context passed to post-processing callbacks |
75
75
@@ -83,6 +83,8 @@ You set `max_events_per_unit` to something larger than you need; the decoder sca
83
83
84
84
## Post-Processing
85
85
86
+
Trace paths ending in `.gz` are written compressed. Overlapping duration slices on the same Perfetto track are split into adjacent `#0`, `#1`, ... lanes by default; pass `split_overlaps=False` to `profile_session` or `events_to_perfetto` to keep raw tracks.
87
+
86
88
You can pass callbacks to `profile_session` to mutate events or the Perfetto trace before writing:
87
89
88
90
-`post_process_events(events, ctx) -> events`: Rename, filter, or regroup events.
0 commit comments