diff --git a/src/node_perf.h b/src/node_perf.h index ca4374ebc58c19..fe5d2d996819d7 100644 --- a/src/node_perf.h +++ b/src/node_perf.h @@ -73,11 +73,11 @@ class PerformanceEntry : public BaseObject { return env_; } - std::string name() const { + const std::string& name() const { return name_; } - std::string type() const { + const std::string& type() const { return type_; } @@ -135,11 +135,11 @@ class PerformanceEntry : public BaseObject { ~PerformanceEntry() {} - std::string name() const { + const std::string& name() const { return name_; } - std::string type() const { + const std::string& type() const { return type_; }