Sha256: b77169f53e23d340d8fb9fcd4959b5d675cf4a9b032f842d255da75dfca05d39

Contents?: true

Size: 889 Bytes

Versions: 5

Compression:

Stored size: 889 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 SRC_LIBPLATFORM_TRACING_TRACE_WRITER_H_
#define SRC_LIBPLATFORM_TRACING_TRACE_WRITER_H_

#include "include/libplatform/v8-tracing.h"

namespace v8 {
namespace platform {
namespace tracing {

class JSONTraceWriter : public TraceWriter {
 public:
  explicit JSONTraceWriter(std::ostream& stream);
  ~JSONTraceWriter();
  void AppendTraceEvent(TraceObject* trace_event) override;
  void Flush() override;

 private:
  void AppendArgValue(uint8_t type, TraceObject::ArgValue value);
  void AppendArgValue(v8::ConvertableToTraceFormat*);

  std::ostream& stream_;
  bool append_comma_ = false;
};

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

#endif  // SRC_LIBPLATFORM_TRACING_TRACE_WRITER_H_

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
libv8-6.0.286.54.1 vendor/v8/src/libplatform/tracing/trace-writer.h
libv8-6.0.286.54.0 vendor/v8/src/libplatform/tracing/trace-writer.h
libv8-6.0.286.54.0beta2 vendor/v8/src/libplatform/tracing/trace-writer.h
libv8-6.0.286.54.0beta1 vendor/v8/src/libplatform/tracing/trace-writer.h
libv8-6.0.286.44.0beta1 vendor/v8/src/libplatform/tracing/trace-writer.h