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

Commit 5b73b747 authored by Wei Wang's avatar Wei Wang Committed by Primiano Tucci
Browse files

atrace: only start trace when starting trace

Bug: 74396309
Test: atrace --async_stop > trace
Change-Id: I50a2bc224d6c48aa7cecf69a57b30c8ccc88b9e0
Merged-In: I50a2bc224d6c48aa7cecf69a57b30c8ccc88b9e0
parent bcfb4873
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1221,8 +1221,10 @@ int main(int argc, char **argv)
    }

    bool ok = true;
    if (traceStart) {
        ok &= setUpTrace();
        ok &= startTrace();
    }

    if (ok && traceStart) {
        if (!traceStream) {