
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
small promise interface to [v8-profiler](https://github.com/node-inspector/v8-profiler) functions
small promise interface to v8-profiler functions
npm i --save nprof
var nprof = require('nprof');
nprof.takeMemorySnapshot('/tmp/snapshots')
.then((info) => {})
.catch((error) => {});
nprof.cpuProfile('/tmp/snapshots', 2000)
.then((info) => {})
.catch((error) => {});
take memory snapshot and save to snapshotPath
${snapshotPath}/v8.cpu.2016-09-20T13-56-53-936.cpuprofile'
start cpu profiling, stop after timeout and save to snapshotPath
${snapshotPath}/v8.cpu.2016-09-20T13-56-53-93.timeout.' + timeout + '.cpuprofile'
start cpu profiling
stop cpu proflile
save profile to file
express.js profiling helper
// logger is you logger with info, warn and error methods
var nprofRegister = require('nprof/express/register');
var app = express();
var nprofConfig = {
snapshotPath: '/tmp/snapshots'
};
nprofRegister(logger, app, nprofConfig);
profile CPU, save to nprofConfig.snapshotPath
start cpu profiling until POST /_profile/cpu/stop not executed
stop cpu profiling and save to nprofConfig.snapshotPath
take memory snapshot and save to nprofConfig.snapshotPath
scale GET-param can be number or string (kb, mb, gb)
get actual memory usage via process.memoryUsage
exec global.gc() if process started with --expose-gc option
return before and after process.memoryUsage
return memory usage and event loop delay
you can add your own status metrics via config.statusFn hook function
see examples/status for more information
MIT
FAQs
small promise interface to [v8-profiler](https://github.com/node-inspector/v8-profiler) functions
We found that nprof 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.