diff --git a/src/env-inl.h b/src/env-inl.h index 615d4b95a543bc..6d7520dab0acc8 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -566,7 +566,8 @@ inline performance::performance_state* Environment::performance_state() { return performance_state_.get(); } -inline std::map* Environment::performance_marks() { +inline std::unordered_map* + Environment::performance_marks() { return &performance_marks_; } diff --git a/src/env.h b/src/env.h index 1fee31a9479e2a..6459eb90a965e1 100644 --- a/src/env.h +++ b/src/env.h @@ -39,7 +39,6 @@ #include "node_http2_state.h" #include -#include #include #include #include @@ -642,7 +641,7 @@ class Environment { inline void set_fs_stats_field_array(double* fields); inline performance::performance_state* performance_state(); - inline std::map* performance_marks(); + inline std::unordered_map* performance_marks(); inline void ThrowError(const char* errmsg); inline void ThrowTypeError(const char* errmsg); @@ -774,7 +773,7 @@ class Environment { int should_not_abort_scope_counter_ = 0; std::unique_ptr performance_state_; - std::map performance_marks_; + std::unordered_map performance_marks_; #if HAVE_INSPECTOR std::unique_ptr inspector_agent_;