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.js4
1 files changed, 2 insertions, 2 deletions
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());