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

Unified Diff: ui/events/ozone/evdev/event_factory.cc

Issue 143083003: ozone: Add some tracing for platform & evdev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add platform name to event Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/events/ozone/event_converter_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/event_factory.cc
diff --git a/ui/events/ozone/evdev/event_factory.cc b/ui/events/ozone/evdev/event_factory.cc
index cfe61808e690e88dc9e43622087eb554afdc2ef4..e8b3fec7a54c057145627b4e858792072892c0c4 100644
--- a/ui/events/ozone/evdev/event_factory.cc
+++ b/ui/events/ozone/evdev/event_factory.cc
@@ -10,6 +10,7 @@
#include <poll.h>
#include <unistd.h>
+#include "base/debug/trace_event.h"
#include "base/files/file_enumerator.h"
#include "base/strings/stringprintf.h"
#include "base/threading/thread_restrictions.h"
@@ -41,6 +42,8 @@ EventFactoryEvdev::EventFactoryEvdev() {}
EventFactoryEvdev::~EventFactoryEvdev() {}
void EventFactoryEvdev::AttachInputDevice(const base::FilePath& path) {
+ TRACE_EVENT1("ozone", "AttachInputDevice", "path", path.value());
+
int fd = open(path.value().c_str(), O_RDONLY | O_NONBLOCK);
if (fd < 0) {
PLOG(ERROR) << "Cannot open '" << path.value();
« no previous file with comments | « no previous file | ui/events/ozone/event_converter_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698