commit | f10b2053be67439539968c9f391f63664de779d4 | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Thu Oct 03 16:24:52 2019 +0100 |
committer | Primiano Tucci <primiano@google.com> | Thu Oct 03 16:24:52 2019 +0100 |
tree | 1c11c3fbed1da6f3a2f9a3449306ea9e0b0f7e78 | |
parent | 570fb43e8203caea658125843902fbc5caff98f5 [diff] |
metatrace: remove memset and trivial-ctor assumption Turns out that on MSVC std::atomic<int> is not trivially constructible (although I think is still a plain old int, it just fails the check). Fall back on resetting each element individually. Thankfully the compiler can see through and eventually figures out it can do a memset: https://godbolt.org/z/wMre8O Bug: chromium:1010616 Change-Id: I971ff888306d6bdbaf6e6b886f9ca506ddc1b30a
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.