%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
// Copyright 2020 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_TRACING_RECORDER_H_ #define V8_LIBPLATFORM_TRACING_RECORDER_H_ #include <stdint.h> #include "include/libplatform/v8-tracing.h" #if !defined(V8_ENABLE_SYSTEM_INSTRUMENTATION) #error "only include this file if V8_ENABLE_SYSTEM_INSTRUMENTATION" #endif #if V8_OS_MACOSX #include <os/signpost.h> #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunguarded-availability" #endif #if V8_OS_WIN #ifndef V8_ETW_GUID #define V8_ETW_GUID \ 0x57277741, 0x3638, 0x4A4B, 0xBD, 0xBA, 0x0A, 0xC6, 0xE4, 0x5D, 0xA5, 0x6C #endif #endif namespace v8 { namespace platform { namespace tracing { // This class serves as a base class for emitting events to system event // controllers: ETW for Windows, Signposts on Mac (to be implemented). It is // enabled by turning on both the ENABLE_SYSTEM_INSTRUMENTATION build flag and // the --enable-system-instrumentation command line flag. When enabled, it is // called from within SystemInstrumentationTraceWriter and replaces the // JSONTraceWriter for event-tracing. class V8_PLATFORM_EXPORT Recorder { public: Recorder(); ~Recorder(); bool IsEnabled(); bool IsEnabled(const uint8_t level); void AddEvent(TraceObject* trace_event); private: #if V8_OS_MACOSX os_log_t v8Provider; #endif }; } // namespace tracing } // namespace platform } // namespace v8 #if V8_OS_MACOSX #pragma clang diagnostic pop #endif #endif // V8_LIBPLATFORM_TRACING_RECORDER_H_