Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
another-v8-profiler
Advanced tools
node bindings for the v8 profiler, minus the retain/dominator bits removed from V8
v8-profiler provides node bindings for the v8 profiler and integration with node-inspector
npm install another-v8-profiler
We now include node v0.10 binaries for a number of platforms. During the install, node-gyp will attempt to build the module for your platform. If it fails (see builderror.log), the module will still be installed, but will attempt to load up an appropriate pre-built binary for your platform if there is one available.
var profiler = require('another-v8-profiler');
######profiler properties
heapProfiler
cpuProfiler
######cpuProfiler properties
count = getProfilesCount()
cpuProfile = getProfile(index)
cpuProfile = findProfile(index)
startProfiling([name])
cpuProfile = stopProfiling([name])
deleteAllProfiles()
######cpuProfile properties
string = getTitle()
integer = getUid()
string = getType()
Serialize( opts={onData: fn, onEnd: fn} )
Delete()
boolean = save([filename])
######heapProfiler properties
count = getSnapshotsCount()
heapSnapshot = getSnapshot(index)
heapSnapshot = findSnapshot(index)
heapSnapshot = takeSnapshot([name])
deleteAllSnapshots()
######heapSnapshot properties
string = getTitle()
integer = getUid()
string = getType()
Serialize( opts={onData: fn, onEnd: fn} )
Delete()
boolean = save([filename])
var profiler = require('another-v8-profiler');
var heapProfiler = profiler.heapProfiler;
var snapshot = heapProfiler.takeSnapshot([name]) // takes a heap snapshot
snapshot.save(filename); // save the snapshot to file
snapshot.delete(); // delete the snapshot (releases memory)
var profiler = require('another-v8-profiler');
var cpuProfiler = profiler.cpuProfiler;
cpuProfiler.startProfiling([name]) // begin cpu profiling
var cpuProfile = profiler.stopProfiling([name]) // finish cpu profiling
Cpu profiles can be viewed and heap snapshots may be taken and viewed from the profiles panel.
FAQs
node bindings for the v8 profiler, minus the retain/dominator bits removed from V8
The npm package another-v8-profiler receives a total of 2 weekly downloads. As such, another-v8-profiler popularity was classified as not popular.
We found that another-v8-profiler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.