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

Unified Diff: src/isolate.cc

Issue 2293883002: Make incremental marking tracing format consistent with GC tracing. (Closed)
Patch Set: Move marking restart function to inl file Created 4 years, 4 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/isolate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698