commit | 6ac6b2f6744e16b256bd6e9498645edab35bc7d4 | [log] [tgz] |
---|---|---|
author | Sergey Ulanov <sergeyu@google.com> | Fri Oct 21 10:48:23 2022 -0700 |
committer | Sergey Ulanov <sergeyu@google.com> | Thu Oct 27 22:36:46 2022 +0000 |
tree | 3375f84e2e9fbaf14cd53a0cc318715ae1b1488d | |
parent | cb8281edbb0e244234ce27dbf69b71c1334bc836 [diff] |
[Fuchsia] Ensure that GetThreadId() is cached. On Fuchsia a syscall is required to get ID of the current thread, so ideally it should be cached. Previously GetThreadId() was trying to cache it using thread_local variable, but it was inlined, so the value wasn't actually cached. Moved the function to a new .cc file to a function that's not inlined, which allows to cache the result properly. Bug: 1166873 Change-Id: I2e3433856b393032af2a3a53847b5f42ddfe3872
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.