Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/libplatform/tracing/json-trace-event-listener.h')
-rw-r--r--deps/v8/src/libplatform/tracing/json-trace-event-listener.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/deps/v8/src/libplatform/tracing/json-trace-event-listener.h b/deps/v8/src/libplatform/tracing/json-trace-event-listener.h
deleted file mode 100644
index a0ab31c9813..00000000000
--- a/deps/v8/src/libplatform/tracing/json-trace-event-listener.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2019 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_JSON_TRACE_EVENT_LISTENER_H_
-#define V8_LIBPLATFORM_TRACING_JSON_TRACE_EVENT_LISTENER_H_
-
-#include <ostream>
-
-#include "libplatform/libplatform-export.h"
-#include "src/libplatform/tracing/trace-event-listener.h"
-
-namespace perfetto {
-namespace protos {
-class ChromeTraceEvent_Arg;
-} // namespace protos
-} // namespace perfetto
-
-namespace v8 {
-namespace platform {
-namespace tracing {
-
-// A listener that converts the proto trace data to JSON and writes it to a
-// file.
-class V8_PLATFORM_EXPORT JSONTraceEventListener final
- : public TraceEventListener {
- public:
- explicit JSONTraceEventListener(std::ostream* stream);
- ~JSONTraceEventListener() override;
-
- void ProcessPacket(const ::perfetto::protos::TracePacket& packet) override;
-
- private:
- // Internal implementation
- void AppendJSONString(const char* str);
- void AppendArgValue(const ::perfetto::protos::ChromeTraceEvent_Arg& arg);
-
- std::ostream* stream_;
- bool append_comma_ = false;
-};
-
-} // namespace tracing
-} // namespace platform
-} // namespace v8
-
-#endif // V8_LIBPLATFORM_TRACING_JSON_TRACE_EVENT_LISTENER_H_