commit | 8eba309d78abdbf26465e2e7a3450299c9bf0e64 | [log] [tgz] |
---|---|---|
author | Lalit Maganti <lalitm@google.com> | Wed Mar 27 13:25:29 2019 +0000 |
committer | Lalit Maganti <lalitm@google.com> | Wed Mar 27 13:26:24 2019 +0000 |
tree | 4969a38560b34a45b289674d8a27af546bb0a7cb | |
parent | 5fa32da9cc18ac6c25b99a40d8809133a39f503d [diff] |
trace_processor: implement string pooling class This CL introduces string pooling functionality to the trace processor backed by PagedMemory. This class uses fixed pages of memory with the following properties: 1. On 64-bit machines, we mmap a 4GB chunk of memory and then use the offset into this chunk as the StringId. 2. On 32-bit machines, we mmap 32MB chunks (this is because the UI will malloc anything we mmap so we want to be conservative). The raw pointer is then used directly as the StringId. The use of this class inside the trace processor will be carried out in a follow up CL. Change-Id: Id1ede4e626b0ec65041be7177a08d3b1fcdbdbbc
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.