summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--perfetto_hprof/perfetto_hprof.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/perfetto_hprof/perfetto_hprof.cc b/perfetto_hprof/perfetto_hprof.cc
index 166dca8f51..d79394ba2f 100644
--- a/perfetto_hprof/perfetto_hprof.cc
+++ b/perfetto_hprof/perfetto_hprof.cc
@@ -1146,6 +1146,7 @@ void DumpPerfettoOutOfMemory() REQUIRES_SHARED(art::Locks::mutator_lock_) {
// child process
[self](pid_t dumped_pid, uint64_t timestamp) {
ArmWatchdogOrDie();
+ art::SetThreadName("perfetto_oome_hprof");
art::ScopedTrace trace("perfetto_hprof oome");
SetupDataSource("android.java_hprof.oom", true);
perfetto::Tracing::ActivateTriggers({"com.android.telemetry.art-outofmemory"}, 500);