docpad-plugin-cpuprofiler
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -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) { |
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11040
68
113