This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
docpad-plugin-heapdumper with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Generates heap snapshots during specified docpad events that can be loaded in to the chrome profiler. Snapshot files are generated in the root of docpad by default
plugins: heapdumper: # default output path relative to the docpad root path snapshotPath: "snapshots" # default events that this plugin write a snapshot at (change to suit your docpad instance) events: [ 'writeAfter' # (default) ]
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'
Be warned that snapshoting the
render event will take a long time depending on how many documents you have to render.
So use wisley, i.e. a test instance of docpad with 3 files to render
Good advice here: