blob: 701efac3d775ad453dd364953e69796199c976d9 [file] [log] [blame]
[email protected]bfb23cb2019-05-29 21:02:571// 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
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_