0.0.1 • Published 10 years ago

sapa v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

Sapa

Transform Performance Timelines into Chrome Devtools Timelines.

Installation

Sapa is available from npm.

npm install sapa

Quickstart

Sapa includes a sapa command that reads a JSON-encoded Performance Timeline from stdin and writes a JSON-encoded Chrome Devtools Timeline to stdout.

cat performance-timeline.json | node_modules/sapa/bin/sapa > chrome-timeline.json

For an example of using Sapa as a Node module, see /bin/sapa.

API

Sapa exports a function from an array of objects implementing the PerformanceEntry interface to an array of objects implementing the TimelineEvent interface.

var chromeTimeline = require('sapa')(performanceTimeline);

Development

Running the tests

npm test

Release Notes

0.0.1

License

Sapa is made available under the MIT License.

Acknowledgements and Attribution

@pflannery's chrome-timeline-logger was a helpful reference, as were portions of the Blink source and the Chrome Devtools Timeline documentation.