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

docpad-plugin-cpuprofiler

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docpad-plugin-cpuprofiler - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

5

out/cpuprofiler.plugin.js

@@ -23,3 +23,4 @@ // Generated by CoffeeScript 1.9.1

start: 'generateBefore',
stop: 'generateAfter'
stop: 'generateAfter',
recordSamples: false
}

@@ -51,3 +52,3 @@ ],

_this[pairEvent.start] = function(opts) {
return profiler.startProfiling(pairEvent.start + "-" + pairEvent.stop);
return profiler.startProfiling(pairEvent.start + "-" + pairEvent.stop, pairEvent.recordSamples ? true : false);
};

@@ -54,0 +55,0 @@ return _this[pairEvent.stop] = function(opts) {

4

package.json
{
"name": "docpad-plugin-cpuprofiler",
"version": "2.0.0",
"description": "Dumps a cpu snapshot for specified start and stop events in docpad, viewable in the chrome profiler",
"version": "2.0.1",
"description": "Create a cpu snapshots for specified start and stop events in docpad, viewable in the chrome profiler",
"homepage": "http://docpad.org/plugin/cpuprofiler",

@@ -6,0 +6,0 @@ "keywords": [

@@ -8,3 +8,3 @@ # CPU profiler Plugin for [DocPad](http://docpad.org)

Generates [cpu snapshots](https://github.com/node-inspector/v8-profiler) during specified docpad events that can be loaded in to the chrome profiler.
Generates cpu snapshots using [v8-profiler](https://github.com/node-inspector/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

@@ -16,11 +16,15 @@

plugins:
cpuprofiler:
# default output path relative to the docpad root path
snapshotPath: "snapshots"
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', stop:'generateAfter'}
]
# 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 boolean flag to the profiler, default is false
}
]
```

@@ -31,7 +35,19 @@

plugins:
cpuprofiler:
# default output path relative to the docpad root path
snapshotPath: "snapshots"
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)
<<<<<<< HEAD
# events that this plugin can start and stop recording from (change to suit your docpad instance)
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'}
]
=======
events: [

@@ -47,22 +63,34 @@ {start: 'generateBefore', stop:'generateAfter'},

]
>>>>>>> origin/master
```
## Capture across events
```
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'
'generateBefore'
'generateAfter'
'parseBefore'
'parseAfter'
'populateCollectionsBefore'
'populateCollections'
'contextualizeBefore'
'contextualizeAfter'
'renderBefore'
'renderAfter'
'renderCollectionBefore'
'renderCollectionAfter'
'writeBefore'
'writeAfter' # (default)
'serverBefore'
'serverAfter'
```

@@ -69,0 +97,0 @@

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