chromium/v8/include/libplatform/v8-tracing.h

// Copyright 2016 the V8 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.

#ifndef V8_LIBPLATFORM_V8_TRACING_H_
#define V8_LIBPLATFORM_V8_TRACING_H_

#include <atomic>
#include <fstream>
#include <memory>
#include <unordered_set>
#include <vector>

#include "libplatform/libplatform-export.h"
#include "v8-platform.h"  // NOLINT(build/include_directory)

namespace perfetto {
namespace trace_processor {
class TraceProcessorStorage;
}
class TracingSession;
}

namespace v8 {

namespace base {
class Mutex;
}  // namespace base

namespace platform {
namespace tracing {

class TraceEventListener;

const int kTraceMaxNumArgs =;

class V8_PLATFORM_EXPORT TraceObject {};

class V8_PLATFORM_EXPORT TraceWriter {};

class V8_PLATFORM_EXPORT TraceBufferChunk {};

class V8_PLATFORM_EXPORT TraceBuffer {};

// Options determines how the trace buffer stores data.
enum TraceRecordMode {};

class V8_PLATFORM_EXPORT TraceConfig {};

#if defined(_MSC_VER)
#define V8_PLATFORM_NON_EXPORTED_BASE
#else
#define V8_PLATFORM_NON_EXPORTED_BASE
#endif  // defined(_MSC_VER)

class V8_PLATFORM_EXPORT TracingController
    : public V8_PLATFORM_NON_EXPORTED_BASE(v8::TracingController) {};

#undef V8_PLATFORM_NON_EXPORTED_BASE

}  // namespace tracing
}  // namespace platform
}  // namespace v8

#endif  // V8_LIBPLATFORM_V8_TRACING_H_