commit | 1a2936f29a842d04f723575cb4655313ea6a3574 | [log] [tgz] |
---|---|---|
author | Lalit Maganti <lalitm@google.com> | Thu Aug 29 17:42:33 2019 +0100 |
committer | Lalit Maganti <lalitm@google.com> | Thu Aug 29 17:42:33 2019 +0100 |
tree | 5356a203dc400898bf5319a5e35e16e882e0e61a | |
parent | 29823a7abc83e9150d7889ed8427357088b38bca [diff] |
trace_processor: make StringPool::Id a POD To distinguish between the overloads of uint32_t and StringId in the constructor of Column, we need the types to be different according to C++. Make StringPool::Id a wrapper of uint32_t instead of being an alias. This should be a no-op interms of performance but makes the types different. As a bonus, it's now a lot harder to mess up insert methods and we get explicit null checking vs implicit null checks which have been done until now. Change-Id: I963c4ddbba22dc28f7fed08fddfd4a76755b754d Bug: 135177627
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.