presto-main/src/main/java/io/prestosql/sql/planner/iterative/RuleStats.java/RuleStats/record
class RuleStats:    public void record(long nanos, boolean match)
    {
        if (match) {
            hits.incrementAndGet();
        }

        time.add(nanos);
    }