Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 10835256ccc9d2e021de96cd5a9c8917c7f911ed..18ae731f9a117ea22991d37cd4ff7f1d0b817709 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -3152,6 +3152,15 @@ void Isolate::IsolateInForegroundNotification() { |
is_isolate_in_background_ = false; |
} |
+void Isolate::PrintWithTimestamp(const char* format, ...) { |
+ base::OS::Print("[%d:%p] %8.0f ms: ", base::OS::GetCurrentProcessId(), |
+ static_cast<void*>(this), time_millis_since_init()); |
+ va_list arguments; |
+ va_start(arguments, format); |
+ base::OS::VPrint(format, arguments); |
+ va_end(arguments); |
+} |
+ |
bool StackLimitCheck::JsHasOverflowed(uintptr_t gap) const { |
StackGuard* stack_guard = isolate_->stack_guard(); |
#ifdef USE_SIMULATOR |