@agoric/telemetry 0.6.3-dev-486919f.0.486919f → 0.6.3-dev-91c0791.0.91c0791

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/telemetry",
3
- "version": "0.6.3-dev-486919f.0.486919f",
3
+ "version": "0.6.3-dev-91c0791.0.91c0791",
4
4
  "description": "Agoric's telemetry implementation",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/Agoric/agoric-sdk",
@@ -22,8 +22,8 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/internal": "0.3.3-dev-486919f.0.486919f",
26
- "@agoric/store": "0.9.3-dev-486919f.0.486919f",
25
+ "@agoric/internal": "0.3.3-dev-91c0791.0.91c0791",
26
+ "@agoric/store": "0.9.3-dev-91c0791.0.91c0791",
27
27
  "@endo/errors": "^1.2.13",
28
28
  "@endo/init": "^1.1.12",
29
29
  "@endo/marshal": "^1.8.0",
@@ -71,5 +71,5 @@
71
71
  "typeCoverage": {
72
72
  "atLeast": 89.28
73
73
  },
74
- "gitHead": "486919f1291219236846e56cb4544d24972302c4"
74
+ "gitHead": "91c07915db9d53bcecc06f2b69c9358cd47c7bad"
75
75
  }
@@ -74,7 +74,7 @@ async function run() {
74
74
  let blocksInThisPeriod = 0;
75
75
  let startOfLastPeriod = 0;
76
76
 
77
- let lastTime = Date.now();
77
+ let lastTime = performance.now();
78
78
  let lineCount = 0;
79
79
 
80
80
  const stats = async flush => {
@@ -109,7 +109,7 @@ async function run() {
109
109
  progress.lastSlogTime = obj.time;
110
110
  }
111
111
 
112
- let now = Date.now();
112
+ let now = performance.now();
113
113
  await maybeUpdateStats(now);
114
114
 
115
115
  if (!update) {
@@ -128,7 +128,7 @@ async function run() {
128
128
  maybeWait = new Promise(resolve => setTimeout(resolve, delayMS));
129
129
  }
130
130
  await maybeWait;
131
- now = Date.now();
131
+ now = performance.now();
132
132
 
133
133
  if (now - startOfLastPeriod >= PROCESSING_PERIOD) {
134
134
  startOfLastPeriod = now;
@@ -152,7 +152,7 @@ async function run() {
152
152
  linesProcessedThisPeriod += 1;
153
153
  if (isAfterCommit) {
154
154
  blocksInThisPeriod += 1;
155
- lastTime = Date.now();
155
+ lastTime = performance.now();
156
156
  await stats(true);
157
157
  }
158
158
  }