|
@@ -187,11 +187,9 @@ public class RollingWindowManager {
|
|
|
*/
|
|
|
public TopWindow snapshot(long time) {
|
|
|
TopWindow window = new TopWindow(windowLenMs);
|
|
|
- if (LOG.isDebugEnabled()) {
|
|
|
- Set<String> metricNames = metricMap.keySet();
|
|
|
- LOG.debug("iterating in reported metrics, size={} values={}",
|
|
|
- metricNames.size(), metricNames);
|
|
|
- }
|
|
|
+ Set<String> metricNames = metricMap.keySet();
|
|
|
+ LOG.debug("iterating in reported metrics, size={} values={}",
|
|
|
+ metricNames.size(), metricNames);
|
|
|
for (Map.Entry<String, RollingWindowMap> entry : metricMap.entrySet()) {
|
|
|
String metricName = entry.getKey();
|
|
|
RollingWindowMap rollingWindows = entry.getValue();
|