commit | 92d95dd54935c15999cf39bf66d4005fae80613d | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Mon Dec 21 15:20:11 2020 +0100 |
committer | Primiano Tucci <primiano@google.com> | Mon Dec 21 17:29:35 2020 +0000 |
tree | aed1de33ab10134374519fec9a557a0f372486e3 | |
parent | 857ed736357fcdf72d2caaa226da2c8178af9316 [diff] |
base::Pipe: Use HANDLE on Windows This CL switches base::Pipe from using the POSIX-compat API _pipe() to CreatePipe(). Turns out that is more proper for use in base::Subprocess (which will be introduced by an upcoming CL) because CreatePipe() returns objects that can be waited for using WaitForMultipleObjects, and hence by the TaskRunner. This CL also: - Fixes ScopedPlatformHandle on Windows. Turns out both nullptr and 0xffff... are invalid values. - Introduces some file_utils methods to Read/Write from HANDLEs. Test: ran perfetto_unittests on Win and Linux. Bug: 174454879 Change-Id: Ic8b51821a5909857ddb437b02de3e642594453af
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.