diff --git a/src/inspector_profiler.h b/src/inspector_profiler.h index 219405b8c7f3f4..345ef90d4e15c6 100644 --- a/src/inspector_profiler.h +++ b/src/inspector_profiler.h @@ -75,7 +75,7 @@ class V8CoverageConnection : public V8ProfilerConnection { void Start() override; void End() override; - const char* type() const override { return type_.c_str(); } + const char* type() const override { return "coverage"; } bool ending() const override { return ending_; } std::string GetDirectory() const override; @@ -85,7 +85,6 @@ class V8CoverageConnection : public V8ProfilerConnection { private: std::unique_ptr session_; bool ending_ = false; - std::string type_ = "coverage"; }; class V8CpuProfilerConnection : public V8ProfilerConnection { @@ -96,7 +95,7 @@ class V8CpuProfilerConnection : public V8ProfilerConnection { void Start() override; void End() override; - const char* type() const override { return type_.c_str(); } + const char* type() const override { return "CPU"; } bool ending() const override { return ending_; } std::string GetDirectory() const override; @@ -106,7 +105,6 @@ class V8CpuProfilerConnection : public V8ProfilerConnection { private: std::unique_ptr session_; bool ending_ = false; - std::string type_ = "CPU"; }; } // namespace profiler