void collect()

in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/BlockedThreadsSubCheck.java [45:53]


    void collect(ThreadInfo info) {
      String threadName = info.getThreadName();
      if (!Strings.isNullOrEmpty(threadName) && threadName.startsWith(prefix)) {
        total += 1;
        if (Thread.State.BLOCKED == info.getThreadState()) {
          blocked += 1;
        }
      }
    }