Sha256: 1ac1d399b8292f4ec0bcf069a8b6ffd701be89a938323a7b5537d055403f9750

Contents?: true

Size: 839 Bytes

Versions: 5

Compression:

Stored size: 839 Bytes

Contents

// 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_TRACING_TRACING_CATEGORY_OBSERVER_H_
#define V8_TRACING_TRACING_CATEGORY_OBSERVER_H_

#include "include/v8-platform.h"

namespace v8 {
namespace tracing {

class TracingCategoryObserver : public Platform::TraceStateObserver {
 public:
  enum Mode {
    ENABLED_BY_NATIVE = 1 << 0,
    ENABLED_BY_TRACING = 1 << 1,
    ENABLED_BY_SAMPLING = 1 << 2,
  };

  static void SetUp();
  static void TearDown();

  // v8::Platform::TraceStateObserver
  void OnTraceEnabled() final;
  void OnTraceDisabled() final;

 private:
  static TracingCategoryObserver* instance_;
};

}  // namespace tracing
}  // namespace v8

#endif  // V8_TRACING_TRACING_CATEGORY_OBSERVER_H_

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
libv8-6.0.286.54.1 vendor/v8/src/tracing/tracing-category-observer.h
libv8-6.0.286.54.0 vendor/v8/src/tracing/tracing-category-observer.h
libv8-6.0.286.54.0beta2 vendor/v8/src/tracing/tracing-category-observer.h
libv8-6.0.286.54.0beta1 vendor/v8/src/tracing/tracing-category-observer.h
libv8-6.0.286.44.0beta1 vendor/v8/src/tracing/tracing-category-observer.h