Index: ui/events/ozone/evdev/event_converter_evdev_impl.cc |
diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl.cc b/ui/events/ozone/evdev/event_converter_evdev_impl.cc |
index 0e7c7f1396305fd69943ab63c6731689c0eed1dc..13a0bfbc4aab2d19f709d0f5ec32a0104636b244 100644 |
--- a/ui/events/ozone/evdev/event_converter_evdev_impl.cc |
+++ b/ui/events/ozone/evdev/event_converter_evdev_impl.cc |
@@ -7,6 +7,7 @@ |
#include <errno.h> |
#include <linux/input.h> |
+#include "base/trace_event/trace_event.h" |
#include "ui/events/event.h" |
#include "ui/events/event_utils.h" |
#include "ui/events/keycodes/dom4/keycode_converter.h" |
@@ -53,6 +54,9 @@ EventConverterEvdevImpl::~EventConverterEvdevImpl() { |
} |
void EventConverterEvdevImpl::OnFileCanReadWithoutBlocking(int fd) { |
+ TRACE_EVENT1("evdev", "EventConverterEvdevImpl::OnFileCanReadWithoutBlocking", |
+ "fd", fd); |
+ |
input_event inputs[4]; |
ssize_t read_size = read(fd, inputs, sizeof(inputs)); |
if (read_size < 0) { |