mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
27 lines
920 B
C
27 lines
920 B
C
// Copyright 2016 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef FLUTTER_GLUE_TRACE_EVENT_H_
|
|
#define FLUTTER_GLUE_TRACE_EVENT_H_
|
|
|
|
#if defined(__Fuchsia__)
|
|
|
|
#include <trace/event.h>
|
|
|
|
#define TRACE_EVENT0(a, b) TRACE_DURATION(a, b)
|
|
#define TRACE_EVENT1(a, b, c, d) TRACE_DURATION(a, b, c, d)
|
|
#define TRACE_EVENT2(a, b, c, d, e, f) TRACE_DURATION(a, b, c, d, e, f)
|
|
#define TRACE_EVENT_ASYNC_BEGIN0(a, b, c) TRACE_ASYNC_BEGIN(a, b, c)
|
|
#define TRACE_EVENT_ASYNC_END0(a, b, c) TRACE_ASYNC_END(a, b, c)
|
|
#define TRACE_EVENT_ASYNC_BEGIN1(a, b, c, d, e) TRACE_ASYNC_BEGIN(a, b, c, d, e)
|
|
#define TRACE_EVENT_ASYNC_END1(a, b, c, d, e) TRACE_ASYNC_END(a, b, c, d, e)
|
|
|
|
#else // defined(__Fuchsia__)
|
|
|
|
#include "flutter/fml/trace_event.h" // nogncheck
|
|
|
|
#endif // defined(__Fuchsia__)
|
|
|
|
#endif // FLUTTER_GLUE_TRACE_EVENT_H_
|