EngFlow / bazel_invocation_analyzer

A tool that automatically analyzes a Bazel build's profile and offers suggestions on how to make it faster.
https://analyzer.engflow.com
Apache License 2.0
90 stars 10 forks source link

BazelProfile: shorten output of `#getSummary` #77

Closed saraadams closed 2 years ago

saraadams commented 2 years ago

Currently, the summary lists all threads. If there are many threads included, this output can get excessively long without providing real value. This change updates BazelProfile#getSummary to only output details about the common threads, and then aggregates all other threads and outputs one line with the aggregated data.

Example output:

BazelProfile: The profile written by Bazel.
Threads:
"Main Thread"           CompleteEvents: 2072    Counts: 5   Instants: 2
"Critical Path"         CompleteEvents: 15
"Garbage Collector"     CompleteEvents: 74
Other (aggregated)      CompleteEvents: 40196