Avi Drissman | 8ba1bad | 2022-09-13 19:22:36 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors |
[email protected] | bfb23cb | 2019-05-29 21:02:57 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef COMPONENTS_EXO_INPUT_TRACE_H_ |
| 6 | #define COMPONENTS_EXO_INPUT_TRACE_H_ |
| 7 | |
| 8 | #include "base/time/time.h" |
| 9 | #include "ui/events/event.h" |
| 10 | |
| 11 | #define TRACE_EXO_INPUT_EVENT(event) \ |
| 12 | TRACE_EVENT2("exo", "Input::OnInputEvent", "type", event->type(), \ |
| 13 | "timestamp", \ |
| 14 | (event->time_stamp() - base::TimeTicks()).InMicroseconds()); |
| 15 | |
| 16 | #endif // COMPONENTS_EXO_INPUT_TRACE_H_ |