Projekt

Obecné

Profil

Stáhnout (893 Bajtů) Statistiky
| Větev: | Revize:
1
[![Build Status](https://travis-ci.org/samccone/chrome-trace-event.svg?branch=master)](https://travis-ci.org/samccone/chrome-trace-event)
2

    
3
chrome-trace-event: A node library for creating trace event logs of program
4
execution according to [Google's Trace Event
5
format](https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU).
6
These logs can then be visualized with
7
[trace-viewer](https://github.com/google/trace-viewer) or chrome devtools to grok one's programs.
8

    
9
# Install
10

    
11
    npm install chrome-trace-event
12

    
13
# Usage
14

    
15
```javascript
16
const Trace = require("chrome-trace-event").Tracer;
17
const trace = new Trace({
18
    noStream: true
19
});
20
trace.pipe(fs.createWriteStream(outPath));
21
trace.flush();
22
```
23

    
24
# Links
25

    
26
* https://github.com/google/trace-viewer/wiki
27
* https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU
28

    
29
# License
30

    
31
MIT. See LICENSE.txt.
(4-4/6)