commit | 0f11fda0917bf7a359b8e3f9871d97a0862e60f8 | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Thu Nov 18 20:25:42 2021 +0000 |
committer | Primiano Tucci <primiano@google.com> | Thu Nov 18 20:51:52 2021 +0000 |
tree | 9a1847e6b7d7057bcb23c3497667c7ac578e0936 | |
parent | c986ca1784a49445c82d4f02c97361a9c0e9e677 [diff] |
TraceProcessor: use FlatHashMap in ThreadStateGenerator Speed up TSG by 2x using FlatHashMap. Performance with a 4GB trace. Query: select id from thread_state limit 1 Before: Query executed in 32630.433 ms After: Query executed in 18256.480 ms Bug: 205302474 Change-Id: I9a7d03000626fa3469b0fe296a65e6838447a2c3
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.