RFR: JDK-8262165: NMT report should state how many callsites had been skipped
(This is a breakout from JDK-8261238, which seems to be stuck in review (https://github.com/openjdk/jdk/pull/2428). I factor out the display changes, which hopefully are non-controversial enough to get upstream easily.)
NMT silently omits call sites in its report whose allocation rate is too small to get over certain, hidden, thresholds:
a) there is a hard wired threshold of 1K in the baseline collector
b) we also skip all sites whose size is less than what the unit is (eg scale=G, we skip all allocations < 1G
NMT report should state how many call sites had been omitted.
The patch adds a counter in the NMT reporter to count omitted call sites, then prints that counter out.
In base report, just a generic message is shown to notify the user that categories > scale are ignored:
(183 call sites weighting less than 1MB each omitted.)
Note: this patch only takes care of the sites omitted due to the scale threshold (b). It does not count how many sites had been omitted due to the baseline threshold (a). Since I still hope to remove that threshold completely with JDK-8261238, I did not put any work toward modifying the output here.