8000 GitHub - lawnsea/sapa: Transform Performance Timelines into Chrome Devtools Timelines
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lawnsea/sapa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • emit mark and measure entries as TimeStamp records
  • emit resource entries as Resource* records

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.

About

Transform Performance Timelines into Chrome Devtools Timelines

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0