Comparing version 5.1.2 to 5.2.0
@@ -126,3 +126,3 @@ 'use strict' | ||
async function visualize ({ visualizeOnly, treeDebug, workingDir, title, mapFrames, open, name, pathToNodeBinary }) { | ||
async function visualize ({ visualizeOnly, treeDebug, workingDir, title, mapFrames, open, name, pathToNodeBinary, collectDelay }) { | ||
try { | ||
@@ -132,3 +132,3 @@ const folder = getFolder(visualizeOnly, workingDir) | ||
const traceFile = /^stacks\.(.*)\.out$/ | ||
const isolateLog = /^isolate-((0x)?[0-9A-Fa-f]{2,16})(?:-\d*)?-(\d*)-v8\.(log|json)$/ | ||
const isolateLog = /^isolate-((?:0x)?[0-9A-Fa-f]{2,16})(?:-\d*)?-(\d*)-v8\.(log|json)$/ | ||
const stacks = ls.find((f) => isolateLog.test(f) || traceFile.test(f)) | ||
@@ -156,3 +156,3 @@ if (!stacks) { | ||
const ticks = (srcType === 'v8') | ||
? await v8LogToTicks(src, { pathToNodeBinary }) | ||
? await v8LogToTicks(src, { pathToNodeBinary, collectDelay }) | ||
: traceStacksToTicks(src) | ||
@@ -159,0 +159,0 @@ |
'use strict' | ||
const SOFT_EXIT_SIGNALS = ['SIGINT', 'SIGTERM'] | ||
for (let i = 0; i < SOFT_EXIT_SIGNALS.length; i++) { | ||
process.on(SOFT_EXIT_SIGNALS[i], process.exit) | ||
} | ||
module.exports = { SOFT_EXIT_SIGNALS } | ||
process.on('SIGINT', process.exit) | ||
process.on('SIGTERM', process.exit) |
{ | ||
"name": "0x", | ||
"version": "5.1.2", | ||
"version": "5.2.0", | ||
"description": "🔥 single-command flamegraph profiling 🔥", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,4 +9,2 @@ 'use strict' | ||
const { SOFT_EXIT_SIGNALS } = require('../lib/preload/soft-exit') | ||
const { | ||
@@ -22,2 +20,4 @@ getTargetFolder, | ||
const SOFT_EXIT_SIGNALS = ['SIGINT', 'SIGTERM'] | ||
function linux (args, sudo, cb) { | ||
@@ -24,0 +24,0 @@ const { status, outputDir, workingDir, name, onPort, pathToNodeBinary } = args |
@@ -15,4 +15,2 @@ 'use strict' | ||
const { SOFT_EXIT_SIGNALS } = require('../lib/preload/soft-exit') | ||
const { | ||
@@ -26,2 +24,4 @@ getTargetFolder, | ||
const SOFT_EXIT_SIGNALS = ['SIGINT', 'SIGTERM'] | ||
async function v8 (args) { | ||
@@ -28,0 +28,0 @@ const { status, outputDir, workingDir, name, onPort, pathToNodeBinary, collectDelay } = args |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100260
1975