Analyze events in Trace Event Format
--complete-events(default'') - names of complete events to analyze--decimal-places(default4) - number of decimal places of output statistics--duration-events(default'') - names of duration events to analyze--immediate-events(default'') - names of immediate events to analyze--output(defaultfalse) - outputs summary to json file for each provided path:[pathFileName].summary.json--paths(default'') - separated paths to Trace Event Format json files--separator(default',') - separator which will be used to separate other params--silent(defaultfalse) - disables output to console--unique-events(defaultfalse) - runs unique events analyzer which creates list of all unique events in json file--verbose(defaultfalse) - enables verbose output
yarn install
node build/main.js
--paths='/path/to/trace/event/format/json'
--complete-events='Paint'
--duration-events='Layout'
--immediate-events='DrawFrame'
--output
{
completeEvents: {
[eventName: string]?: StatisticsGroup
},
durationEvents: {
[eventName: string]?: StatisticsGroup
},
immediateEvents: {
[eventName: string]?: StatisticsGroup
},
uniqueEvents?: string[],
}
Dictionary
deltas- calculated on time between events (complete, immediate) or time between corresponding pairs of events (begin-end for duration events)eps- events per second (1000 / delta)
{
deltas: Statistics,
eps: Statistics
}
{
min: number[ms],
mean: number[ms],
percentiles: {
50: number[ms],
66: number[ms],
75: number[ms],
80: number[ms],
90: number[ms],
95: number[ms],
98: number[ms],
99: number[ms],
100: number[ms]
},
standardDeviation: number[ms],
variance: number[ms]
}
MIT