Commit 11310964 authored by lpy's avatar lpy Committed by Commit bot

Remove TRACE_EVENT_FLAG_COPY in runtime call stats tracing.

By removing the copy flag, we reduce the amount of strings to be copied each
time.

BUG=v8:5089
LOG=N

Review-Url: https://codereview.chromium.org/2233993002
Cr-Commit-Position: refs/heads/master@{#38955}
parent f3bf8f92
......@@ -26,8 +26,8 @@ void CallStatsScopedTracer::AddEndTraceEvent() {
v8::internal::tracing::AddTraceEvent(
TRACE_EVENT_PHASE_END, p_data_->category_group_enabled, p_data_->name,
v8::internal::tracing::kGlobalScope, v8::internal::tracing::kNoId,
v8::internal::tracing::kNoId, TRACE_EVENT_FLAG_COPY,
"runtime-call-stat",
v8::internal::tracing::kNoId, TRACE_EVENT_FLAG_NONE,
"runtime-call-stats",
TRACE_STR_COPY(p_data_->isolate->trace_event_stats_table()->Dump()));
} else {
v8::internal::tracing::AddTraceEvent(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment