Skip to content

sheldarr/trace-event-format-analyzer

Repository files navigation

trace-event-format-analyzer

Analyze events in Trace Event Format

Parameters

  • --complete-events (default '') - names of complete events to analyze
  • --decimal-places (default 4) - 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 (default false) - 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 (default false) - disables output to console
  • --unique-events (default false) - runs unique events analyzer which creates list of all unique events in json file
  • --verbose (default false) - enables verbose output

Example

yarn install

node build/main.js
    --paths='/path/to/trace/event/format/json'
    --complete-events='Paint'
    --duration-events='Layout'
    --immediate-events='DrawFrame'
    --output

Output format

Summary

{
    completeEvents: {
        [eventName: string]?: StatisticsGroup
    },
    durationEvents: {
        [eventName: string]?: StatisticsGroup
    },
    immediateEvents: {
        [eventName: string]?: StatisticsGroup
    },
    uniqueEvents?: string[],
}

StatisticsGroup

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
}

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]
}

License

MIT

About

Analyze events in Trace Event Format

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published