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.
docpad-plugin-cpuprofiler
Advanced tools
Creates cpu snapshots for specified start and stop events in docpad, viewable in the chrome profiler
Generates cpu snapshots using v8-profiler during specified docpad events that can be loaded in to the chrome profiler. Snapshot files are generated in the root of docpad under 'snapshots' folder by default
plugins:
cpuprofiler:
# default output path relative to the docpad root path
snapshotPath: "snapshots"
# events that this plugin can start and stop recording from (change to suit your docpad instance)
# default settings
events: [
{
start: 'generateBefore', # event to start recording
stop:'generateAfter', # event to stop recording
recordSamples: false # passes the record_samples (flame data) boolean flag to the profiler, default is false
}
]
plugins:
cpuprofiler:
# default output path relative to the docpad root path
snapshotPath: "snapshots"
events: [
{start: 'generateBefore', stop:'generateAfter'},
{start: 'parseBefore', stop:'parseAfter'},
{start: 'populateCollectionsBefore', stop:'populateCollections'},
{start: 'contextualizeBefore', stop:'contextualizeAfter'},
{start: 'renderBefore', stop:'renderAfter'},
{start: 'renderCollectionBefore', stop:'renderCollectionAfter'},
{start: 'writeBefore', stop:'writeAfter'},
{start: 'serverBefore', stop:'serverAfter'}
]
plugins:
cpuprofiler:
# default output path relative to the docpad root path
snapshotPath: "snapshots"
events: [
{start: 'generateBefore', stop:'writeAfter'}
]
Some of the events that can be specified
'generateBefore'
'generateAfter'
'parseBefore'
'parseAfter'
'populateCollectionsBefore'
'populateCollections'
'contextualizeBefore'
'contextualizeAfter'
'renderBefore'
'renderAfter'
'renderCollectionBefore'
'renderCollectionAfter'
'writeBefore'
'writeAfter' # (default)
'serverBefore'
'serverAfter'
Good advice here:
You can discover the history inside the History.md
file
You can discover the contributing instructions inside the Contributing.md
file
Licensed under the incredibly permissive MIT License
Copyright © 2015+ Stringz Solutions Ltd
Copyright © 2015+ Peter Flannery
FAQs
Creates cpu snapshots for specified start and stop events in docpad, viewable in the chrome profiler
The npm package docpad-plugin-cpuprofiler receives a total of 4 weekly downloads. As such, docpad-plugin-cpuprofiler popularity was classified as not popular.
We found that docpad-plugin-cpuprofiler 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.