summaryrefslogtreecommitdiff
path: root/src/node_perf.cc
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-02-09 23:48:14 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2019-02-18 17:58:22 +0800
commitfd0a861cdb3088f60ee56a8adef05fd50b71f817 (patch)
treeb99a8fd488e5e6da3c2aaf592a98a7120dbb1292 /src/node_perf.cc
parent2ae45d3b17f9c51fccffc4041e195e04b4b18c15 (diff)
downloadandroid-node-v8-fd0a861cdb3088f60ee56a8adef05fd50b71f817.tar.gz
android-node-v8-fd0a861cdb3088f60ee56a8adef05fd50b71f817.tar.bz2
android-node-v8-fd0a861cdb3088f60ee56a8adef05fd50b71f817.zip
src: unify uptime base used across the code base
This patch joins `per_process::prog_start_time` (a double) and `performance::performance_node_start` (a uint64_t) into a `per_process::node_start_time` (a uint64_t) which gets initialized in `node::Start()`. PR-URL: https://github.com/nodejs/node/pull/26016 Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/node_perf.cc')
-rw-r--r--src/node_perf.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/node_perf.cc b/src/node_perf.cc
index b9c0183a83..f63dc6abf0 100644
--- a/src/node_perf.cc
+++ b/src/node_perf.cc
@@ -46,7 +46,6 @@ using v8::Value;
const uint64_t timeOrigin = PERFORMANCE_NOW();
// https://w3c.github.io/hr-time/#dfn-time-origin-timestamp
const double timeOriginTimestamp = GetCurrentTimeInMicroseconds();
-uint64_t performance_node_start;
uint64_t performance_v8_start;
void performance_state::Mark(enum PerformanceMilestone milestone,