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
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: