commit | 9eb309367a30e6f1527bee3184ca4358a41a5f8c | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Thu Apr 27 12:50:59 2023 -0700 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Tue May 02 00:56:05 2023 +0000 |
tree | d235a2b71f2a8926df17b36dd075122e1771194f | |
parent | c87b4619908209cae2c2f7ca3efb4a1875e688d3 [diff] |
profcollectd: Add a log file in the report This is to detect possible errors while collecting ETM data. 1. Create a trace.log file in the output directory. It will be put in the report zip file. 2. Register a custom log function writing to the log file via SetLogger. So both rust and c++ code can log to the file. 3. Add log messages when calling simpleperf functions. 4. The log file is cleared after config change (e.g. after a device update). Bug: 272547391 Test: run profcollectd manually (cherry picked from https://android-review.googlesource.com/q/commit:f1d91d222eb77a04bfe7449816da6ee417365edd) Merged-In: I1f0d5e5209eab46f1b9893406ba365da43dd77c2 Change-Id: I1f0d5e5209eab46f1b9893406ba365da43dd77c2