summaryrefslogtreecommitdiff
path: root/src/inspector_profiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspector_profiler.h')
-rw-r--r--src/inspector_profiler.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/inspector_profiler.h b/src/inspector_profiler.h
index 219405b8c7..345ef90d4e 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<inspector::InspectorSession> 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<inspector::InspectorSession> session_;
bool ending_ = false;
- std::string type_ = "CPU";
};
} // namespace profiler