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

Unified Diff: src/log.cc

Issue 24566004: Add an API for additional profile log records (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 3 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
Index: src/log.cc
===================================================================
--- src/log.cc (revision 16936)
+++ src/log.cc (working copy)
@@ -1441,6 +1441,14 @@
}
+void Logger::MarkEvent(char* mark) {
+ if (!log_->IsEnabled()) return;
+ Log::MessageBuilder msg(log_);
+ msg.Append("%s,%s\n", kLogEventsNames[MARK_EVENT], mark);
+ msg.WriteToLogFile();
+}
+
+
void Logger::HeapSampleBeginEvent(const char* space, const char* kind) {
if (!log_->IsEnabled() || !FLAG_log_gc) return;
Log::MessageBuilder msg(log_);

Powered by Google App Engine
This is Rietveld 408576698