input_trace.h 629 B

12345678910111213141516
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_EXO_INPUT_TRACE_H_
  5. #define COMPONENTS_EXO_INPUT_TRACE_H_
  6. #include "base/time/time.h"
  7. #include "ui/events/event.h"
  8. #define TRACE_EXO_INPUT_EVENT(event) \
  9. TRACE_EVENT2("exo", "Input::OnInputEvent", "type", event->type(), \
  10. "timestamp", \
  11. (event->time_stamp() - base::TimeTicks()).InMicroseconds());
  12. #endif // COMPONENTS_EXO_INPUT_TRACE_H_