summaryrefslogtreecommitdiffstats
path: root/cc/trees/latency_info_swap_promise_monitor.cc
diff options
context:
space:
mode:
authormiletus <miletus@chromium.org>2015-04-22 17:07:02 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-23 00:08:10 +0000
commit7f9fd6071aeb387d5c98ca839ac54af555ba2c34 (patch)
tree6d296022fe1e8abb55a26f131357c0b551ba7911 /cc/trees/latency_info_swap_promise_monitor.cc
parentdb04346c255d4391728a541b95594d6f8a503f60 (diff)
downloadchromium_src-7f9fd6071aeb387d5c98ca839ac54af555ba2c34.zip
chromium_src-7f9fd6071aeb387d5c98ca839ac54af555ba2c34.tar.gz
chromium_src-7f9fd6071aeb387d5c98ca839ac54af555ba2c34.tar.bz2
Append input event type as trace event's name
Previously to show input event's type in the InputLatency trace event, we issue an async step event with the input event type as the step event's name. However, trace viewer's UI for showing async step event is confusing that the step event is stacked under its parent async event. E.g. the InputLatency for a GestureScrollUpdate trace event will be shown as an aysnc trace event with name "InputLatency" and then a separate async step event with name "GestureScrollUpdate". To make it cleaner, this CL removes the async step event, and append the event type to the name of the InputLatency's async event. So for the above example, there will only be one async trace event with name "InputLatency::GestureScrollUpdate". BUG=472121 Review URL: https://codereview.chromium.org/1089243002 Cr-Commit-Position: refs/heads/master@{#326410}
Diffstat (limited to 'cc/trees/latency_info_swap_promise_monitor.cc')
-rw-r--r--cc/trees/latency_info_swap_promise_monitor.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/cc/trees/latency_info_swap_promise_monitor.cc b/cc/trees/latency_info_swap_promise_monitor.cc
index 83f5999..2b56f68 100644
--- a/cc/trees/latency_info_swap_promise_monitor.cc
+++ b/cc/trees/latency_info_swap_promise_monitor.cc
@@ -82,10 +82,9 @@ void LatencyInfoSwapPromiseMonitor::OnForwardScrollUpdateToMainThreadOnImpl() {
if (!new_sequence_number)
return;
ui::LatencyInfo new_latency;
- new_latency.AddLatencyNumber(
+ new_latency.AddLatencyNumberWithTraceName(
ui::INPUT_EVENT_LATENCY_BEGIN_SCROLL_UPDATE_MAIN_COMPONENT, 0,
- new_sequence_number);
- new_latency.TraceEventType("ScrollUpdate");
+ new_sequence_number, "ScrollUpdate");
new_latency.CopyLatencyFrom(
*latency_,
ui::INPUT_EVENT_LATENCY_FORWARD_SCROLL_UPDATE_TO_MAIN_COMPONENT);