Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
@iopipe/profiler
Advanced tools
Readme
This is a profiler and tracing library for use with IOpipe and AWS Lambda.
With yarn (recommended) in project directory:
yarn add @iopipe/profiler
With npm in project directory:
npm install @iopipe/profiler
Then include the plugin with IOpipe in your serverless function:
const iopipeLib = require('@iopipe/iopipe');
const profiler = require('@iopipe/profiler');
const iopipe = iopipeLib({
token: 'TOKEN_HERE',
plugins: [profiler({ enabled: true, heapSnapshot: true })]
});
exports.handler = iopipe((event, context) => {
context.succeed('Wow!');
});
enabled
(bool: optional = false)By default, this plugin will not run the profiler. You must enable profiling on your function either by setting this variable, or setting IOPIPE_ENABLE_PROFILER=true
in your environment. The environment variable setting (either true or unset) takes precedence over plugin config.
heapSnapshot
(bool: optional = false)By default, this plugin will not take heap snapshots. To enable heap snapshots, either set this value to true, or setting IOPIPE_ENABLE_HEAPSNAPSHOT=true
in your environment. The environment variable setting (either true or unset) takes precedence over plugin config.
recSamples
(bool: optional = true)Record samples, defaults to true.
sampleRate
(number: optional = 1000)Change the sampling interval, in microseconds. Defaults to 1000us.
debug
(bool: optional = false)Show debugging logs.
To enable profiling via environment variable, set IOPIPE_ENABLE_PROFILER
to true in your environment.
Apache-2.0 see LICENSE
Copyright 2017, IOpipe, Inc.
FAQs
IOpipe plugin for running the v8 profiler on your functions
We found that @iopipe/profiler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers 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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).