summaryrefslogtreecommitdiff
path: root/test/common/cpu-prof.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/common/cpu-prof.js')
-rw-r--r--test/common/cpu-prof.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/test/common/cpu-prof.js b/test/common/cpu-prof.js
index 8e8bd42275..ae81eefd45 100644
--- a/test/common/cpu-prof.js
+++ b/test/common/cpu-prof.js
@@ -2,7 +2,7 @@
'use strict';
-const common = require('./');
+require('./');
const fs = require('fs');
const path = require('path');
const assert = require('assert');
@@ -34,23 +34,12 @@ function verifyFrames(output, file, suffix) {
assert.notDeepStrictEqual(frames, []);
}
-let FIB = 30;
-// This is based on emperial values - in the CI, on Windows the program
-// tend to finish too fast then we won't be able to see the profiled script
-// in the samples, so we need to bump the values a bit. On slower platforms
-// like the Pis it could take more time to complete, we need to use a
-// smaller value so the test would not time out.
-if (common.isWindows) {
- FIB = 40;
-}
-
// We need to set --cpu-interval to a smaller value to make sure we can
// find our workload in the samples. 50us should be a small enough sampling
// interval for this.
const kCpuProfInterval = 50;
const env = {
...process.env,
- FIB,
NODE_DEBUG_NATIVE: 'INSPECTOR_PROFILER'
};