commit | dac9170d3bb9a583de66631784f812ff3b2389f6 | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Fri Apr 30 15:47:51 2021 +0100 |
committer | Primiano Tucci <primiano@google.com> | Fri Apr 30 15:38:51 2021 +0000 |
tree | c475c6eee94d9c28a1d1f0412f515d5c05a744e7 | |
parent | 6d3785da3278153ccbf59eb97eccf96396f52d70 [diff] |
base: Add PeriodicTask with timerfd support This CL adds a base::PeriodicTask helper class which does two things: 1. Wraps the logic necessary for periodic task execution taking care of related subtleties (e.g., cancelling outstanding tasks after reset/dtor). 2. Optionally supports suspend-aware timers. This is only supported on Linux/Android using timerfd on CLOCK_BOOTTIME. Bug: 185346474 Test: perfetto_unittests --gtest_filter=PeriodicTaskTest* Change-Id: I1574898a54f254df17a9436b239dcbc401c1fcd3
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.