[vcs-log] tweak repo size collector to get finer roots and commits reports

This commit is contained in:
Julia Beliaeva
2016-10-30 20:53:16 +03:00
parent 1e84592279
commit 8db0558484
@@ -56,10 +56,10 @@ public class VcsLogRepoSizeCollector extends AbstractApplicationUsagesCollector
Set<UsageDescriptor> usages = ContainerUtil.newHashSet();
usages.add(StatisticsUtilKt.getCountingUsage("data.commit.count", permanentGraph.getAllCommits().size(),
asList(0, 1, 100, 1000, 10 * 1000, 100 * 1000, 500 * 1000)));
asList(0, 1, 100, 1000, 10 * 1000, 100 * 1000, 500 * 1000, 1000 * 1000)));
for (VcsKey vcs : groupedRoots.keySet()) {
usages.add(StatisticsUtilKt.getCountingUsage("data." + vcs.getName().toLowerCase() + ".root.count", groupedRoots.get(vcs).size(),
asList(0, 1, 2, 5, 8, 15, 30, 50, 100, 500, 1000)));
asList(0, 1, 2, 5, 8, 15, 30, 50, 100, 300, 500)));
}
return usages;
}