void (@NotNull PrintStream out, @NotNull String name, long val) { if (val == 0) // skip non-informative counters return; if (name.endsWith("DurationNs") || name.endsWith("Ns")) { if (val < 1000) // skip non-informative counters return; name = name.replace("Ns", "Ms"); val /= 1000000L; } out.printf("\t%s=%d\n", name, val); }