chromium/third_party/angle/src/libANGLE/trace.h

//
// Copyright 2019 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// trace.h: Wrappers for ANGLE trace event functions.
//

#ifndef LIBANGLE_TRACE_H_
#define LIBANGLE_TRACE_H_

#include <platform/PlatformMethods.h>
#include "common/base/anglebase/trace_event/trace_event.h"

// TODO: Pass platform directly to these methods. http://anglebug.com/42260698
#define ANGLE_TRACE_EVENT_BEGIN(CATEGORY, EVENT, ...)

#define ANGLE_TRACE_EVENT_END(CATEGORY, EVENT, ...)

#define ANGLE_TRACE_EVENT_INSTANT(CATEGORY, EVENT, ...)

#define ANGLE_TRACE_EVENT(CATEGORY, EVENT, ...)

// Deprecated, use ANGLE_TRACE_EVENT_BEGIN
#define ANGLE_TRACE_EVENT_BEGIN0(CATEGORY, EVENT)
// Deprecated, use ANGLE_TRACE_EVENT_END
#define ANGLE_TRACE_EVENT_END0(CATEGORY, EVENT)
// Deprecated, use ANGLE_TRACE_EVENT_INSTANT
#define ANGLE_TRACE_EVENT_INSTANT0(CATEGORY, EVENT)
// Deprecated, use ANGLE_TRACE_EVENT
#define ANGLE_TRACE_EVENT0(CATEGORY, EVENT)
// Deprecated, use ANGLE_TRACE_EVENT
#define ANGLE_TRACE_EVENT1(CATEGORY, EVENT, NAME, VAL)

#endif  // LIBANGLE_TRACE_H_