SurfaceFlingerPerfTests: Add arguments to simpleperf listener
Added testing arguments to report certain events within surfaceflinger and gather performance metrics. Test: atest SurfaceFlingerPerfTests:SurfaceFlingerPerfTest Bug: 230039226 Change-Id: Ic8f07222c8307223c030dab08f4acd3eb18e18aa
This commit is contained in:
@@ -52,12 +52,20 @@
|
||||
<!-- PerfettoListener related arguments -->
|
||||
<option name="instrumentation-arg" key="perfetto_config_text_proto" value="true" />
|
||||
<option name="instrumentation-arg" key="perfetto_config_file" value="trace_config.textproto" />
|
||||
|
||||
<!-- SimpleperfListener related arguments -->
|
||||
<option name="instrumentation-arg" key="report" value="true" />
|
||||
<option name="instrumentation-arg" key="arguments" value="""" />
|
||||
<option name="instrumentation-arg" key="events_to_record" value="instructions,cpu-cycles,raw-l3d-cache-refill,sched:sched_waking" />
|
||||
<option name="instrumentation-arg" key="processes_to_record" value="surfaceflinger" />
|
||||
<option name="instrumentation-arg" key="symbols_to_report" value=""android::SurfaceFlinger::commit(long, long, long)"" />
|
||||
</test>
|
||||
|
||||
<metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector">
|
||||
<option name="directory-keys" value="/data/local/tmp/SurfaceFlingerPerfTests" />
|
||||
<!-- Needed for pulling the collected trace config on to the host -->
|
||||
<option name="pull-pattern-keys" value="perfetto_file_path" />
|
||||
<option name="pull-pattern-keys" value="simpleperf_file_path" />
|
||||
</metrics_collector>
|
||||
|
||||
</configuration>
|
||||
|
||||
@@ -48,6 +48,5 @@ public class SurfaceFlingerPerfTest {
|
||||
while (state.keepRunning()) {
|
||||
// Do Something
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user