Perfetto SDK: use external 'dev.perfetto.sdk' dependency.
We want to use the same Perfetto Java SDK code both for the 3P users and in Framework,the same way we are already doing for the Perfetto C API. We add a dependency to the external java and jni code. We guard the new usage with a flag `perfetto_sdk_tracing_v3`. We will delete the android.os.PerfettoTrace code in the future. I've updated the 'TracePerfTest' with a 'V3' test versions, to make sure we have no perf regressions. I've also add tests to make sure the 'V3' version init and works fine. Test: atest TracePerfTest Test: atest FrameworksCoreTests:PerfettoTraceV3InitializationTest Test: atest FrameworksCoreTests:PerfettoTraceMessageQueueTest Bug: 303199244 Flag: android.os.perfetto_sdk_tracing_v3 Change-Id: Ie25bb90850f028fd6e5a345340b1359d214a7017
Loading
Please register or sign in to comment