summaryrefslogtreecommitdiff
path: root/libs/binder/IPCThreadState.cpp
diff options
context:
space:
mode:
author Primiano Tucci <primiano@google.com> 2021-01-14 12:26:29 +0000
committer Primiano Tucci <primiano@google.com> 2021-01-14 14:15:10 +0000
commitfaaaafba8ce1d4ef5276892f176a25f839130898 (patch)
treea5e2649c1c080cb71fd6c6df2fc7914079ec7111 /libs/binder/IPCThreadState.cpp
parent7de7b8c5d9e9d307e103225d58e9f1544d9db632 (diff)
dumpstate: save background traces when a BR is captured.
Adds a call to perfetto --save-for-bugreport to bugreport. If a background trace labeled with bugreport_score > 0 is being recorded when dumpstate is invoked, the tracing daemon will stop the trace and serialize it into a fixed location (/data/misc/perfetto-traces/bugreport/systrace.pftrace). If no background tracing is happening, the command is a no-op. The trace saving happens in two stages: 1. In the very early stage of dumpstate, the trace is snapshoted (if in progress). This prevents that further dumpstate activity pushes out interesting contents from the trace buffer. 2. In the later stages of dumpstate, the trace is attached to the bugreport.zip file and cleaned up. Bug: 170334305 Change-Id: I4278459697a5ed20b20ee99032884874a82a66be
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
0 files changed, 0 insertions, 0 deletions