commit | cb2579fce4b928a5b5c4c9de76bdea3c70144aa0 | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Thu Nov 26 18:45:05 2020 +0100 |
committer | Primiano Tucci <primiano@google.com> | Thu Nov 26 18:45:05 2020 +0100 |
tree | 78d9388f9b2b6f253a3a5eaea47b57fb079c6d59 | |
parent | c9f2c2b7eab1395bd1e29e9254dbb475a59f66b8 [diff] |
TraceProcessor: add streaming query support. This CL adds an endpoint to issue queries and retrieve results in row-oriented batches. The batched data is designed to allow fast parsing from JS/TS by packing all cells of the same type together. This CL changes the /query HTP endpoint to return a Transfer-Encoding: Chunked sequence of batches. The binary format is still unchanged. This endpoint is in reality temporary because the whole TP interface might be switched to websockets soon anyways to allow pipelining and proper chunking support. For now, however, we need a way to get this data in the UI to make progress there. Bug: 159142289 Change-Id: I584fb94f8326d82144ca5c55b2da060b56637348
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.