mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
src: use unordered_map for perf marks
PR-URL: https://github.com/nodejs/node/pull/19558 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
553e34ef9c
commit
d38ccbb07f
2 files changed
+4
-4
No files matched your search
+2
-1
@@ -526,7 +526,8 @@ inline performance::performance_state* Environment::performance_state() {
|
||||
return performance_state_.get();
|
||||
}
|
||||
|
||||
inline std::map<std::string, uint64_t>* Environment::performance_marks() {
|
||||
inline std::unordered_map<std::string, uint64_t>*
|
||||
Environment::performance_marks() {
|
||||
return &performance_marks_;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
#include "node_http2_state.h"
|
||||
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <stdint.h>
|
||||
#include <vector>
|
||||
#include <unordered_map>
|
||||
@@ -625,7 +624,7 @@ class Environment {
|
||||
inline AliasedBuffer<uint32_t, v8::Uint32Array>& scheduled_immediate_count();
|
||||
|
||||
inline performance::performance_state* performance_state();
|
||||
inline std::map<std::string, uint64_t>* performance_marks();
|
||||
inline std::unordered_map<std::string, uint64_t>* performance_marks();
|
||||
|
||||
inline void ThrowError(const char* errmsg);
|
||||
inline void ThrowTypeError(const char* errmsg);
|
||||
@@ -731,7 +730,7 @@ class Environment {
|
||||
AliasedBuffer<uint32_t, v8::Uint32Array> scheduled_immediate_count_;
|
||||
|
||||
std::unique_ptr<performance::performance_state> performance_state_;
|
||||
std::map<std::string, uint64_t> performance_marks_;
|
||||
std::unordered_map<std::string, uint64_t> performance_marks_;
|
||||
|
||||
#if HAVE_INSPECTOR
|
||||
std::unique_ptr<inspector::Agent> inspector_agent_;
|
||||
|
||||
Reference in new issue
Block a user