chrome-trace-event
- Version 1.0.4
- Published
- 9.81 kB
- No dependencies
- MIT license
Install
npm i chrome-trace-eventyarn add chrome-trace-eventpnpm add chrome-trace-eventOverview
A library to create a trace of your node app per Google's Trace Event format.
Index
Classes
class Tracer
class Tracer extends ReadableStream {}constructor
constructor(opts?: TracerOptions);method begin
begin: (fields: Fields) => void;method child
child: (fields: Fields) => Tracer;method completeEvent
completeEvent: (fields: Fields) => void;method end
end: (fields: Fields) => void;method flush
flush: () => void;If in no streamMode in order to flush out the trace you need to call flush.
method instantEvent
instantEvent: (fields: Fields) => void;method mkEventFunc
mkEventFunc: (ph: string) => (fields: Fields) => void;Interfaces
interface Event
interface Event {}property ph
ph?: string;event phase
property pid
pid: number;property tid
tid: number;property ts
ts: number;index signature
[otherData: string]: any;interface Fields
interface Fields {}interface TracerOptions
interface TracerOptions {}property fields
fields?: Fields | null;property noStream
noStream?: boolean;property objectMode
objectMode?: boolean | null;property parent
parent?: Tracer | null;Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (4)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/chrome-trace-event.
- Markdown[](https://www.jsdocs.io/package/chrome-trace-event)
- HTML<a href="https://www.jsdocs.io/package/chrome-trace-event"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 1539 ms. - Missing or incorrect documentation? Open an issue for this package.
