Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 073fe996 authored by Andy Labrada's avatar Andy Labrada
Browse files

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
parent 50d39610
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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="&quot;&quot;" />
        <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="&quot;android::SurfaceFlinger::commit(long, long, long)&quot;" />
    </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>
+0 −1
Original line number Diff line number Diff line
@@ -48,6 +48,5 @@ public class SurfaceFlingerPerfTest {
        while (state.keepRunning()) {
            // Do Something
        }

    }
}