commit | 1991437edc2f6856f2b7e783155a0905fb4a10e1 | [log] [tgz] |
---|---|---|
author | Wei Wang <wvw@google.com> | Fri Mar 09 06:53:17 2018 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Fri Mar 09 06:53:17 2018 +0000 |
tree | 6e168f0d4d4b9ca4deb76a95a4958da5e0cfb31a | |
parent | ae002fdbaafa0fd07fd366115b7fc22d7042ae02 [diff] | |
parent | 51e6abd6103e3eae0071024f02b3a21f58cc3f41 [diff] |
Merge "atrace: only start trace when starting trace" into pi-dev am: 51e6abd610 Change-Id: Ief96f4d437860a403f1862fc47c3d386cbe87790
diff --git a/cmds/atrace/atrace.cpp b/cmds/atrace/atrace.cpp index 898aa90..57745ef 100644 --- a/cmds/atrace/atrace.cpp +++ b/cmds/atrace/atrace.cpp
@@ -1221,8 +1221,10 @@ } bool ok = true; - ok &= setUpTrace(); - ok &= startTrace(); + if (traceStart) { + ok &= setUpTrace(); + ok &= startTrace(); + } if (ok && traceStart) { if (!traceStream) {