summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-03-23 15:53:54 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2018-03-27 01:39:51 +0100
commitc46e36b073678ea410ecc649f34c5346a9eb735a (patch)
treebfdcf857c33e4ddf4b78d18a7d5e4af03b4d246d /src/env.h
parentd111d7b91c16ec420f231da4f6877a9b446de6d8 (diff)
downloadandroid-node-v8-c46e36b073678ea410ecc649f34c5346a9eb735a.tar.gz
android-node-v8-c46e36b073678ea410ecc649f34c5346a9eb735a.tar.bz2
android-node-v8-c46e36b073678ea410ecc649f34c5346a9eb735a.zip
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>
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/env.h b/src/env.h
index 9c5ba966f4..6a5fbd0587 100644
--- a/src/env.h
+++ b/src/env.h
@@ -38,7 +38,6 @@
#include "node_http2_state.h"
#include <list>
-#include <map>
#include <stdint.h>
#include <vector>
#include <unordered_map>
@@ -646,7 +645,7 @@ class Environment {
file_handle_read_wrap_freelist();
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();
void CollectExceptionInfo(v8::Local<v8::Value> context,
int errorno,
@@ -795,7 +794,7 @@ class Environment {
int should_not_abort_scope_counter_ = 0;
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_;