Map<String, Long> getTimeSpentWaitingForLock() {
    return new TreeMap<>(timeSpentWaitingForLock);
  }
@return time spent waiting for the lock (in milliseconds) by thread name
ambari-server/src/main/java/org/apache/ambari/server/logging/LockProfileDelegate.java