Log PPID when running dex2oat
Log parent's pid in dex2oat. Logging happens only in verbose
compiler mode.
This can be used to find out which process executed a dex2oat
instance.
Test: m test-art-host
Change-Id: I49a139ed39a2454649f21275d6be860cbab96f55
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc
index 1dd9132..1296bcf 100644
--- a/dex2oat/dex2oat.cc
+++ b/dex2oat/dex2oat.cc
@@ -2782,6 +2782,8 @@
return EXIT_FAILURE;
}
+ VLOG(compiler) << "Running dex2oat (parent PID = " << getppid() << ")";
+
bool result;
if (dex2oat->IsImage()) {
result = CompileImage(*dex2oat);