The three named metrics and the aggregates the intended analyzer prints.
Reading the sample output
Expected report
Name Total Sum Min Max Average
bandwidth 19 380000 2000 38000 20000.000000
datarate 19 38000 200 3800 2000.000000
latency 19 380 2 38 20.000000
top.sv adds values for i=1 through 19: latency uses i×2, datarate i×200, and bandwidth i×2000. The reported count, minimum, maximum, sum, and average correspond to those arithmetic sequences.
Treat units as part of the metric contract
The example names do not encode units. A reusable implementation should establish units in the metric name, a subclass, or metadata—for example latency_cycles or bandwidth_bytes_per_second—so aggregates remain interpretable.