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

Side by Side Diff: content/renderer/input/render_widget_input_handler.cc

Issue 2245133006: CL for perf tryjob on win (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CL for perf tryjob on mac Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/input/render_widget_input_handler.h" 5 #include "content/renderer/input/render_widget_input_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 start_time = base::TimeTicks::Now(); 245 start_time = base::TimeTicks::Now();
246 246
247 TRACE_EVENT1("renderer,benchmark,rail", 247 TRACE_EVENT1("renderer,benchmark,rail",
248 "RenderWidgetInputHandler::OnHandleInputEvent", "event", 248 "RenderWidgetInputHandler::OnHandleInputEvent", "event",
249 WebInputEventTraits::GetName(input_event.type)); 249 WebInputEventTraits::GetName(input_event.type));
250 TRACE_EVENT_SYNTHETIC_DELAY_BEGIN("blink.HandleInputEvent"); 250 TRACE_EVENT_SYNTHETIC_DELAY_BEGIN("blink.HandleInputEvent");
251 TRACE_EVENT_WITH_FLOW1("input,benchmark", "LatencyInfo.Flow", 251 TRACE_EVENT_WITH_FLOW1("input,benchmark", "LatencyInfo.Flow",
252 TRACE_ID_DONT_MANGLE(latency_info.trace_id()), 252 TRACE_ID_DONT_MANGLE(latency_info.trace_id()),
253 TRACE_EVENT_FLAG_FLOW_IN | TRACE_EVENT_FLAG_FLOW_OUT, 253 TRACE_EVENT_FLAG_FLOW_IN | TRACE_EVENT_FLAG_FLOW_OUT,
254 "step", "HandleInputEventMain"); 254 "step", "HandleInputEventMain");
255 255 VLOG(0) << "RenderWidgetInputHandler::OnHandleInputEvent: "
256 << WebInputEventTraits::GetName(input_event.type);
256 // If we don't have a high res timer, these metrics won't be accurate enough 257 // If we don't have a high res timer, these metrics won't be accurate enough
257 // to be worth collecting. Note that this does introduce some sampling bias. 258 // to be worth collecting. Note that this does introduce some sampling bias.
258 if (!start_time.is_null()) 259 if (!start_time.is_null())
259 LogInputEventLatencyUma(input_event, start_time); 260 LogInputEventLatencyUma(input_event, start_time);
260 261
261 std::unique_ptr<cc::SwapPromiseMonitor> latency_info_swap_promise_monitor; 262 std::unique_ptr<cc::SwapPromiseMonitor> latency_info_swap_promise_monitor;
262 ui::LatencyInfo swap_latency_info(latency_info); 263 ui::LatencyInfo swap_latency_info(latency_info);
263 swap_latency_info.AddLatencyNumber( 264 swap_latency_info.AddLatencyNumber(
264 ui::LatencyComponentType::INPUT_EVENT_LATENCY_RENDERER_MAIN_COMPONENT, 0, 265 ui::LatencyComponentType::INPUT_EVENT_LATENCY_RENDERER_MAIN_COMPONENT, 0,
265 0); 266 0);
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 if (pending_input_event_ack_) { 556 if (pending_input_event_ack_) {
556 TRACE_EVENT_ASYNC_END0("input", 557 TRACE_EVENT_ASYNC_END0("input",
557 "RenderWidgetInputHandler::ThrottledInputEventAck", 558 "RenderWidgetInputHandler::ThrottledInputEventAck",
558 pending_input_event_ack_.get()); 559 pending_input_event_ack_.get());
559 delegate_->OnInputEventAck(std::move(pending_input_event_ack_)); 560 delegate_->OnInputEventAck(std::move(pending_input_event_ack_));
560 } 561 }
561 total_input_handling_time_this_frame_ = base::TimeDelta(); 562 total_input_handling_time_this_frame_ = base::TimeDelta();
562 } 563 }
563 564
564 } // namespace content 565 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/input/input_event_filter.cc ('k') | third_party/WebKit/Source/core/events/EventTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698