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

Unified Diff: src/log.h

Issue 827993003: Integrate Chrome tracing with V8 (WIP) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Cleanup Created 5 years, 11 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/counters.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 abf35f0ebc5ddcf0373f598d0cf48eee1d479e5c..7619f15aeac4c571add8e8d4a81c466a6a254c06 100644
--- a/src/log.h
+++ b/src/log.h
@@ -152,6 +152,7 @@ class Sampler;
class Logger {
public:
enum StartEnd { START = 0, END = 1 };
+ enum Overhead { LOW = 0, NORMAL = 1, HIGH = 2 };
#define DECLARE_ENUM(enum_item, ignore) enum_item,
enum LogEventsAndTags {
@@ -303,7 +304,7 @@ class Logger {
static void DefaultEventLoggerSentinel(const char* name, int event) {}
INLINE(static void CallEventLogger(Isolate* isolate, const char* name,
- StartEnd se, bool expose_to_api));
+ StartEnd se, Overhead overhead));
// ==== Events logged by --log-regexp ====
// Regexp compilation and execution events.
@@ -422,19 +423,19 @@ class Logger {
};
-#define TIMER_EVENTS_LIST(V) \
- V(RecompileSynchronous, true) \
- V(RecompileConcurrent, true) \
- V(CompileFullCode, true) \
- V(Execute, true) \
- V(External, true) \
- V(IcMiss, false)
+#define TIMER_EVENTS_LIST(V) \
+ V(RecompileSynchronous, NORMAL) \
+ V(RecompileConcurrent, NORMAL) \
+ V(CompileFullCode, NORMAL) \
+ V(Execute, NORMAL) \
+ V(External, NORMAL) \
+ V(IcMiss, HIGH)
-#define V(TimerName, expose) \
+#define V(TimerName, TimerOverhead) \
class TimerEvent##TimerName : public AllStatic { \
public: \
static const char* name(void* unused = NULL) { return "V8." #TimerName; } \
- static bool expose_to_api() { return expose; } \
+ static Logger::Overhead overhead() { return Logger::TimerOverhead; } \
};
TIMER_EVENTS_LIST(V)
#undef V
« no previous file with comments | « src/counters.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698