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

Unified Diff: src/log.h

Issue 11412125: Add parallel recompilation time to histogram and plot execution pause times. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: make new counters non-histograms Created 8 years, 1 month 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/heap.cc ('k') | src/log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/log.h
diff --git a/src/log.h b/src/log.h
index 33f359a7f996be80842fe7a6d6e7f685ed68ac03..a1ebd79ccae6ca843fbf18cf69cba9cf999c2796 100644
--- a/src/log.h
+++ b/src/log.h
@@ -274,6 +274,31 @@ class Logger {
void SharedLibraryEvent(const wchar_t* library_path,
uintptr_t start,
uintptr_t end);
+ void TimerEvent(const char* name, int64_t start, int64_t end);
+
+ class TimerEventScope {
+ public:
+ TimerEventScope(Logger* logger, const char* name)
+ : logger_(logger), name_(name), start_(0) {
+ if (FLAG_log_timer_events) start_ = OS::Ticks();
+ }
+
+ ~TimerEventScope() {
+ if (FLAG_log_timer_events) {
+ logger_->TimerEvent(name_, start_, OS::Ticks());
+ }
+ }
+
+ static const char* v8_recompile_synchronous;
+ static const char* v8_recompile_parallel;
+ static const char* v8_compile_full_code;
+ static const char* v8_execute;
+
+ private:
+ Logger* logger_;
+ const char* name_;
+ int64_t start_;
+ };
// ==== Events logged by --log-regexp ====
// Regexp compilation and execution events.
@@ -449,6 +474,8 @@ class Logger {
// Logger::FunctionCreateEvent(...)
Address prev_code_;
+ int64_t epoch_;
+
friend class CpuProfiler;
};
« no previous file with comments | « src/heap.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698