OSDN Git Service

Log PPID when running dex2oat
authorWojciech Staszkiewicz <staszkiewicz@google.com>
Tue, 13 Sep 2016 19:06:36 +0000 (12:06 -0700)
committerWojciech Staszkiewicz <staszkiewicz@google.com>
Wed, 14 Sep 2016 23:34:37 +0000 (16:34 -0700)
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

index 1dd9132..1296bcf 100644 (file)
@@ -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);