summaryrefslogtreecommitdiff
path: root/deps/v8
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-01-18 01:23:34 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2013-01-18 01:33:12 +0100
commit8b0f3ce397b473ab6c438aa9c002f38396713e44 (patch)
treee9139a375ff9f3c3aa76dcb035a3ff506ad6fb1e /deps/v8
parent4488a69fac9a00ec8ce941464cfc16b9078249ee (diff)
downloadnode-8b0f3ce397b473ab6c438aa9c002f38396713e44.tar.gz
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.
Diffstat (limited to 'deps/v8')
-rw-r--r--deps/v8/src/log-utils.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/deps/v8/src/log-utils.cc b/deps/v8/src/log-utils.cc
index d8d92cbe2..a66db3d93 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();