67cff1d258e520c7c76969b1c39d1a57f2b6fcc3b9dbcfa1484c82c3b0c61a865c66792e53e5d4f10f3262ab2bbc28bcd500ebe32dcb9eee8bca77961df80a 893 B

12345678910111213141516171819202122232425262728293031
  1. [![Build Status](https://travis-ci.org/samccone/chrome-trace-event.svg?branch=master)](https://travis-ci.org/samccone/chrome-trace-event)
  2. chrome-trace-event: A node library for creating trace event logs of program
  3. execution according to [Google's Trace Event
  4. format](https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU).
  5. These logs can then be visualized with
  6. [trace-viewer](https://github.com/google/trace-viewer) or chrome devtools to grok one's programs.
  7. # Install
  8. npm install chrome-trace-event
  9. # Usage
  10. ```javascript
  11. const Trace = require("chrome-trace-event").Tracer;
  12. const trace = new Trace({
  13. noStream: true
  14. });
  15. trace.pipe(fs.createWriteStream(outPath));
  16. trace.flush();
  17. ```
  18. # Links
  19. * https://github.com/google/trace-viewer/wiki
  20. * https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU
  21. # License
  22. MIT. See LICENSE.txt.