diff options
-rw-r--r-- | simpleperf/command.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/simpleperf/command.cpp b/simpleperf/command.cpp index 314b9bc8..ee03720b 100644 --- a/simpleperf/command.cpp +++ b/simpleperf/command.cpp @@ -152,6 +152,8 @@ bool RunSimpleperfCmd(int argc, char** argv) { LOG(DEBUG) << "command '" << command_name << "' " << (result ? "finished successfully" : "failed"); // Quick exit to avoid cost freeing memory and closing files. + fflush(stdout); + fflush(stderr); android::base::quick_exit(result ? 0 : 1); return result; } |