Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: src/utils.cc

Issue 1109133002: Print PID and isolate address in gc traces. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils.cc
diff --git a/src/utils.cc b/src/utils.cc
index c6fe55b5c65d309c190ff3bd3568247c5dc7774f..03f639d514c2db245f0f826321cfdb396e54da50 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -114,6 +114,15 @@ void PrintPID(const char* format, ...) {
}
+void PrintIsolate(void* isolate, const char* format, ...) {
+ base::OS::Print("[%d:%p] ", base::OS::GetCurrentProcessId(), isolate);
+ va_list arguments;
+ va_start(arguments, format);
+ base::OS::VPrint(format, arguments);
+ va_end(arguments);
+}
+
+
int SNPrintF(Vector<char> str, const char* format, ...) {
va_list args;
va_start(args, format);
« no previous file with comments | « src/utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698