diff options
Diffstat (limited to 'deps/v8/src/tracing/traced-value.h')
-rw-r--r-- | deps/v8/src/tracing/traced-value.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/deps/v8/src/tracing/traced-value.h b/deps/v8/src/tracing/traced-value.h index 3edfbc23b20..3b1d09059de 100644 --- a/deps/v8/src/tracing/traced-value.h +++ b/deps/v8/src/tracing/traced-value.h @@ -12,11 +12,17 @@ #include "include/v8-platform.h" #include "src/base/macros.h" +#include "src/tracing/trace-event.h" namespace v8 { namespace tracing { -class V8_EXPORT_PRIVATE TracedValue : public ConvertableToTraceFormat { +class V8_EXPORT_PRIVATE TracedValue : public ConvertableToTraceFormat +#ifdef V8_USE_PERFETTO + , + public perfetto::DebugAnnotation +#endif // V8_USE_PERFETTO +{ public: ~TracedValue() override; @@ -54,6 +60,11 @@ class V8_EXPORT_PRIVATE TracedValue : public ConvertableToTraceFormat { // ConvertableToTraceFormat implementation. void AppendAsTraceFormat(std::string* out) const override; +#ifdef V8_USE_PERFETTO + // DebugAnnotation implementation. + void Add(perfetto::protos::pbzero::DebugAnnotation*) const override; +#endif // V8_USE_PERFETTO + private: TracedValue(); |