|
@@ -50,9 +50,6 @@ public class FSOpDurations implements MetricsSource {
|
|
|
@Metric("Duration for a update thread run")
|
|
|
MutableRate updateThreadRun;
|
|
|
|
|
|
- @Metric("Duration for a preempt call")
|
|
|
- MutableRate preemptCall;
|
|
|
-
|
|
|
private static final MetricsInfo RECORD_INFO =
|
|
|
info("FSOpDurations", "Durations of FairScheduler calls or thread-runs");
|
|
|
|
|
@@ -84,7 +81,6 @@ public class FSOpDurations implements MetricsSource {
|
|
|
continuousSchedulingRun.setExtended(isExtended);
|
|
|
nodeUpdateCall.setExtended(isExtended);
|
|
|
updateThreadRun.setExtended(isExtended);
|
|
|
- preemptCall.setExtended(isExtended);
|
|
|
|
|
|
INSTANCE.isExtended = isExtended;
|
|
|
}
|
|
@@ -106,10 +102,6 @@ public class FSOpDurations implements MetricsSource {
|
|
|
updateThreadRun.add(value);
|
|
|
}
|
|
|
|
|
|
- public void addPreemptCallDuration(long value) {
|
|
|
- preemptCall.add(value);
|
|
|
- }
|
|
|
-
|
|
|
@VisibleForTesting
|
|
|
public boolean hasUpdateThreadRunChanged() {
|
|
|
return updateThreadRun.changed();
|