Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

0x

Package Overview
Dependencies
Maintainers
3
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

0x - npm Package Compare versions

Comparing version 5.4.0 to 5.4.1

4

docs/kernel-tracing.md

@@ -23,2 +23,6 @@ # 0x kernel tracing

> Note: `0x` uses `linux_perf` for kernel tracing, which requires spawning a non-nodejs process
directly, for this reason, one can't use `--kernel-tracing` together with `--on-port`. Instead,
run it in a separate terminal.
## Troubleshooting

@@ -25,0 +29,0 @@

2

docs/ui.md

@@ -85,3 +85,3 @@ # UI

Functions in dependencies. That is, functions that are in files within the `node_modules` folder).
Functions in dependencies. That is, functions that are in files within the `node_modules` folder.

@@ -88,0 +88,0 @@ Enabled by default.

{
"name": "0x",
"version": "5.4.0",
"version": "5.4.1",
"description": "🔥 single-command flamegraph profiling 🔥",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -13,4 +13,2 @@ 'use strict'

pathTo,
spawnOnPort,
when
} = require('../lib/util')

@@ -24,2 +22,7 @@

const { status, outputDir, workingDir, name, onPort, pathToNodeBinary } = args
if (onPort) {
cb(Error('--on-port couldn\'t be used with Linux profiling. Run it in a separate terminal'))
return
}
const perf = pathTo('perf')

@@ -52,4 +55,3 @@ if (!perf) {

'--perf-basic-prof',
'-r', path.join(__dirname, '..', 'lib', 'preload', 'soft-exit'),
...(onPort ? ['-r', path.join(__dirname, '..', 'lib', 'preload', 'detect-port.js')] : [])
'-r', path.join(__dirname, '..', 'lib', 'preload', 'soft-exit.js'),
].filter(Boolean).concat(args.argv), {

@@ -69,16 +71,4 @@ stdio: ['ignore', 'inherit', 'inherit', 'ignore', 'ignore', 'pipe']

if (onPort) status('Profiling\n')
else status('Profiling')
status('Profiling')
if (onPort) {
when(proc.stdio[5], 'data').then((port) => {
const whenPort = spawnOnPort(onPort, port)
whenPort.then(() => proc.kill('SIGINT'))
whenPort.catch((err) => {
proc.kill()
cb(err)
})
})
}
const handleExit = () => {

@@ -85,0 +75,0 @@ spawn('sudo', ['kill', '-SIGINT', '' + proc.pid], {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc