commit | 63ad74ac51b7de1a305c80c5766f21f94641dc10 | [log] [tgz] |
---|---|---|
author | Deepanjan Roy <dproy@google.com> | Fri Aug 20 11:17:13 2021 -0400 |
committer | Deepanjan Roy <dproy@google.com> | Fri Aug 20 11:17:13 2021 -0400 |
tree | 93f270ad9dd3766524a08e12fe7b01565688eb81 | |
parent | 4328da9e58df9915a3c5097fc0da53f39e6aa3da [diff] |
Do not use ScopedResource for FindFirstFile handle The current usage of ScopedResource does not work for Android Studio Profiler, because INVALID_HANDLE_VALUE under their compile configuration is defined as ((HANDLE)(LONG_PTR)-1), which is a reinterpret_cast, and reinterpret_casts cannot be used in constexpr. Template arguments are required to be constexprs. Since there is just one use case of this, it's easier to call FindClose directly. If we have many more uses of FindFirstFile handle in the future, we can look into defining a different scoped object for it. Bug: 182165266 Change-Id: I27bc917643b1b13d4bfd4c1ad9299ee3324a2b08
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.