YARN-6112. UpdateCallDuration is calculated only when debug logging is enabled. (Yufei Gu via kasha)
This commit is contained in:
parent
5fb723bb77
commit
9b85053583
@ -50,9 +50,6 @@ public class FSOpDurations implements MetricsSource {
|
||||
@Metric("Duration for a update thread run")
|
||||
MutableRate updateThreadRun;
|
||||
|
||||
@Metric("Duration for an update call")
|
||||
MutableRate updateCall;
|
||||
|
||||
@Metric("Duration for a preempt call")
|
||||
MutableRate preemptCall;
|
||||
|
||||
@ -87,7 +84,6 @@ private synchronized void setExtended(boolean isExtended) {
|
||||
continuousSchedulingRun.setExtended(isExtended);
|
||||
nodeUpdateCall.setExtended(isExtended);
|
||||
updateThreadRun.setExtended(isExtended);
|
||||
updateCall.setExtended(isExtended);
|
||||
preemptCall.setExtended(isExtended);
|
||||
|
||||
INSTANCE.isExtended = isExtended;
|
||||
@ -110,10 +106,6 @@ public void addUpdateThreadRunDuration(long value) {
|
||||
updateThreadRun.add(value);
|
||||
}
|
||||
|
||||
public void addUpdateCallDuration(long value) {
|
||||
updateCall.add(value);
|
||||
}
|
||||
|
||||
public void addPreemptCallDuration(long value) {
|
||||
preemptCall.add(value);
|
||||
}
|
||||
|
@ -350,7 +350,6 @@ public void run() {
|
||||
protected void update() {
|
||||
try {
|
||||
writeLock.lock();
|
||||
long start = getClock().getTime();
|
||||
|
||||
FSQueue rootQueue = queueMgr.getRootQueue();
|
||||
|
||||
@ -373,9 +372,6 @@ protected void update() {
|
||||
rootMetrics.getAvailableVirtualCores()) +
|
||||
" Demand: " + rootQueue.getDemand());
|
||||
}
|
||||
|
||||
long duration = getClock().getTime() - start;
|
||||
fsOpDurations.addUpdateCallDuration(duration);
|
||||
}
|
||||
} finally {
|
||||
writeLock.unlock();
|
||||
|
Loading…
Reference in New Issue
Block a user