From 8b0f3ce397b473ab6c438aa9c002f38396713e44 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 18 Jan 2013 01:23:34 +0100 Subject: [PATCH] v8: add %p option to --logfile, expands to pid Useful when you are profiling multiple instances of V8 concurrently. Submitted upstream: http://code.google.com/p/v8/issues/detail?id=2503 Refs #4617. --- deps/v8/src/log-utils.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deps/v8/src/log-utils.cc b/deps/v8/src/log-utils.cc index d8d92cbe21..a66db3d931 100644 --- a/deps/v8/src/log-utils.cc +++ b/deps/v8/src/log-utils.cc @@ -107,6 +107,9 @@ void Log::Initialize() { // one character so we can escape the loop properly. p--; break; + case 'p': + stream.Add("%d", OS::GetCurrentProcessId()); + break; case 't': { // %t expands to the current time in milliseconds. double time = OS::TimeCurrentMillis();