From 0a4c75f41adc193a55a1cdada87af987373a13fb Mon Sep 17 00:00:00 2001 From: Wojciech Staszkiewicz Date: Tue, 13 Sep 2016 12:06:36 -0700 Subject: [PATCH] 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 --- dex2oat/dex2oat.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc index 1dd91321c..1296bcf52 100644 --- a/dex2oat/dex2oat.cc +++ b/dex2oat/dex2oat.cc @@ -2782,6 +2782,8 @@ static int dex2oat(int argc, char** argv) { return EXIT_FAILURE; } + VLOG(compiler) << "Running dex2oat (parent PID = " << getppid() << ")"; + bool result; if (dex2oat->IsImage()) { result = CompileImage(*dex2oat); -- 2.11.0