presto-main/src/main/java/io/prestosql/failuredetector/HeartbeatFailureDetector.java/HeartbeatFailureDetector/getActiveCount
class HeartbeatFailureDetector:    @Managed
    public int getActiveCount()
    {
        return tasks.size() - getFailed().size();
    }