diff options
author | 2025-02-07 05:28:20 -0800 | |
---|---|---|
committer | 2025-02-07 05:28:20 -0800 | |
commit | d55d20a2a8393755cee03333c1c641f1b90219df (patch) | |
tree | c4102970d94def85b302b45f528a60a2b66e38e6 | |
parent | 67e5e61c2a151a1c01f379816a89e31c8374310b (diff) |
Add logging when starting a trace iteration while one is already in progress
Should help identify if we are trying to start tracing iterations concurrently and if that might be leading to race conditions that we are not handling.
Change-Id: If9f6ac5e9dd5b5c0f8e9bb6eb04b10fec374d3e1
Flag: EXEMPT logging only
Bug: 393585228
-rw-r--r-- | core/jni/android_tracing_PerfettoDataSource.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/jni/android_tracing_PerfettoDataSource.cpp b/core/jni/android_tracing_PerfettoDataSource.cpp index ea896e1678a7..56ee3dcf7ca5 100644 --- a/core/jni/android_tracing_PerfettoDataSource.cpp +++ b/core/jni/android_tracing_PerfettoDataSource.cpp @@ -96,6 +96,9 @@ jobject PerfettoDataSource::newInstance(JNIEnv* env, void* ds_config, size_t ds_ bool PerfettoDataSource::TraceIterateBegin() { if (gInIteration) { + ALOG(LOG_ERROR, LOG_TAG, + "Tried calling TraceIterateBegin with an already active iterator for datasource %s.", + dataSourceName.c_str()); return false; } |