commit | d28f2a1e13ea6caed4d94075727acef655bc97a9 | [log] [tgz] |
---|---|---|
author | Daniele Di Proietto <ddiproietto@google.com> | Thu Apr 11 18:43:30 2024 +0000 |
committer | Daniele Di Proietto <ddiproietto@google.com> | Thu Apr 11 18:43:30 2024 +0000 |
tree | 2908ef72f63901688058ce1814274e931015cd5c | |
parent | 1df669be0d5057d754bb8229e431c85d5870040b [diff] |
Improve ftrace_config_muxer_unittest Misc improvements to ftrace_config_muxer_unittest: * Use a mock instead of global state for AtraceWrapper. This is why this refactoring started: a future CL might add new mehtods to AtraceWrapper, so I thought it would be easier to use dependency injection properly. * Move the FtraceConfigMuxer dependencies into fixtures as much as possible. * Construct FtraceConfigMuxer into fixtures, where possible. This makes it easier to change the constructor. * As a result there are three separate fixtures now: one that just provides some dependencies, one that builds a FtraceConfigMuxer with a fake proto translation table and one that builds a FtraceConfigMuxer with a mock proto translation table. Change-Id: Ia2808d95a203b9af77a507e90e53377aff68e901
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.