Parser for the Timeline secion of a Build Scan
MIT License
TimelineParser
is a command-line interface (CLI) tool for generating metrics and parsing timeline data from Develocity Timeline section available at scan-data/gradle/$BUILD_SCAN_ID/timeline
.
curl -L https://github.com/cdsap/TimelineParser/releases/download/v0.3.1/timelineparser --output timelineparser
chmod 0757 timelineparser
# Generate Metrics from two timeline json files
./timelineparser --mode generate-metrics -timeline first.json --timeline second.json
# Generate Metrics from three timeline json files
./timelineparser --mode generate-metrics -timeline first.json --timeline second.json --third second.json
# Generate Metrics from two timeline json files generating a Trace event file
./timelineparser --mode generate-metrics --timeline first.json --timeline second.json --generate-trace-events
# Generate Build Models from timeline json file
./timelineparser -mode generate-models --timelie timeline1.json
# Generate Kotlin Usage Reports
./timelineparser --mode kotlin-usage-report --timeline timeline.json
./gradlew :fatBinary
./timelineparser -mode generate-metrics --timeline first.json --timeline second.json
io.github.cdsap:comparescans
Build
entity of io.github.cdsap:geapi-data
--mode
(required): Specifies the mode of operation. Possible values are generate-metrics
and genrate-models
.--timeline
: The timeline.json
file(s) from Develocity for parsing (required for parse
mode, can be specified multiple times).--generate-trace-events
: Flag to generate trace event files (optional).The metrics generated by the CLI can be used to analyze the performance of the build. You have an example of the metrics generated by the CLI in the following example. You can use the CompareScans tool to apply rules and generate insights from the metrics.