aboutsummaryrefslogtreecommitdiff
path: root/test/common
diff options
context:
space:
mode:
Diffstat (limited to 'test/common')
-rw-r--r--test/common/README.md3
-rw-r--r--test/common/cpu-prof.js4
2 files changed, 3 insertions, 4 deletions
diff --git a/test/common/README.md b/test/common/README.md
index a60a60ce20..1f47baf7a8 100644
--- a/test/common/README.md
+++ b/test/common/README.md
@@ -450,9 +450,8 @@ Windows and `30` elsewhere.
Returns an array of all `.cpuprofile` files found in `dir`.
-### getFrames(output, file, suffix)
+### getFrames(file, suffix)
-* `output` Unused.
* `file` {string} Path to a `.cpuprofile` file.
* `suffix` {string} Suffix of the URL of call frames to retrieve.
* returns { frames: [<Object>], nodes: [<Object>] }
diff --git a/test/common/cpu-prof.js b/test/common/cpu-prof.js
index 78e746082b..8e8bd42275 100644
--- a/test/common/cpu-prof.js
+++ b/test/common/cpu-prof.js
@@ -14,7 +14,7 @@ function getCpuProfiles(dir) {
.map((file) => path.join(dir, file));
}
-function getFrames(output, file, suffix) {
+function getFrames(file, suffix) {
const data = fs.readFileSync(file, 'utf8');
const profile = JSON.parse(data);
const frames = profile.nodes.filter((i) => {
@@ -25,7 +25,7 @@ function getFrames(output, file, suffix) {
}
function verifyFrames(output, file, suffix) {
- const { frames, nodes } = getFrames(output, file, suffix);
+ const { frames, nodes } = getFrames(file, suffix);
if (frames.length === 0) {
// Show native debug output and the profile for debugging.
console.log(output.stderr.toString());