mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] tweak repo size collector to get finer roots and commits reports
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user