[profiler] Do not log Date.now timer events by default.
Bug: v8:6520 Change-Id: Id1249b293fc6aafbeddb7fb9f4b522dfbec7fc78 Reviewed-on: https://chromium-review.googlesource.com/584608 Commit-Queue: Jaroslav Sevcik <jarin@chromium.org> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Cr-Commit-Position: refs/heads/master@{#46867}
This commit is contained in:
parent
dbfe008b43
commit
87d8db6fc4
@ -884,7 +884,7 @@ void Logger::CodeDeoptEvent(Code* code, DeoptKind kind, Address pc,
|
|||||||
|
|
||||||
void Logger::CurrentTimeEvent() {
|
void Logger::CurrentTimeEvent() {
|
||||||
if (!log_->IsEnabled()) return;
|
if (!log_->IsEnabled()) return;
|
||||||
DCHECK(FLAG_log_timer_events || FLAG_prof_cpp);
|
DCHECK(FLAG_log_internal_timer_events);
|
||||||
Log::MessageBuilder msg(log_);
|
Log::MessageBuilder msg(log_);
|
||||||
int since_epoch = static_cast<int>(timer_.Elapsed().InMicroseconds());
|
int since_epoch = static_cast<int>(timer_.Elapsed().InMicroseconds());
|
||||||
msg.Append("current-time,%d", since_epoch);
|
msg.Append("current-time,%d", since_epoch);
|
||||||
@ -1774,7 +1774,7 @@ bool Logger::SetUp(Isolate* isolate) {
|
|||||||
is_logging_ = true;
|
is_logging_ = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FLAG_log_internal_timer_events || FLAG_prof_cpp) timer_.Start();
|
if (FLAG_log_internal_timer_events) timer_.Start();
|
||||||
|
|
||||||
if (FLAG_prof_cpp) {
|
if (FLAG_prof_cpp) {
|
||||||
profiler_ = new Profiler(isolate);
|
profiler_ = new Profiler(isolate);
|
||||||
|
Loading…
Reference in New Issue
Block a user