You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
893 B

4 years ago
  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.