blob: d61ede321489191a9dd7538c3c328abcab8a69d3 [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361// Copyright 2019 The Chromium Authors
[email protected]bfb23cb2019-05-29 21:02:572// 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_