in usage-statistics-impl/src/jetbrains/buildServer/usageStatistics/impl/providers/IDEFeaturesUsageStatisticsProvider.java [120:135]
private void publishDebugSessionUsers(@NotNull final UsageStatisticsPublisher publisher,
@NotNull final UsageStatisticsPresentationManager presentationManager,
@NotNull final String periodDescription,
final long fromDate) {
final String featureName = "Remote Debug";
final String statisticId = makeId(periodDescription, featureName);
presentationManager.applyPresentation(statisticId, featureName, myGroupName, new PercentageFormatter(getTotalUsersCount(fromDate)), getValueTooltip());
ourRemoteDebugSessionUsersCountQuery.execute(mySQLRunner, new GenericQuery.ResultSetProcessor<Void>() {
public Void process(final ResultSet rs) throws SQLException {
if (rs.next()) {
publisher.publishStatistic(statisticId, rs.getInt(1));
}
return null;
}
}, fromDate);
}