commit | b502dde01a2dd1630ced947e7722d55dafd97970 | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Tue Oct 29 22:13:24 2019 +0100 |
committer | Primiano Tucci <primiano@google.com> | Tue Oct 29 22:13:24 2019 +0100 |
tree | dbb0a52f48b9223aae3f2f05cc3ed44267854696 | |
parent | 11a79e755c5e6ca1e548481b7c2b0426d4c8d9c0 [diff] |
UI; unify File/ArrayBuffer/fetch() into TraceStream This CL unifies the three code paths for loading traces introducing a TraceStream class. This class exposes a unified interface for loading a trace in chunks and provides three implementations for opening a trace from: (1) A File object; (2) An ArrayBuffer (for window.open()); (3) A url. Also this CL passes WASM input on a dedicated buffer rather than on the WASM stack. This allows the bump the chunk size when loading from file from 1MB to 32MB, upping significantly the trace load speed because of hitting JS <> WASM rundtrips less frequently. Bug: 143074239 Change-Id: I97660b47d26378428be514fc79667cf9408dbdfe
Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.
See www.perfetto.dev for docs.
You can reach us on our Discord channel. If you prefer using IRC we have an experimental Discord <> IRC bridge synced with #perfetto-dev
on Freenode.