presto-main/src/main/java/io/prestosql/sql/planner/OptimizerStatsRecorder.java/OptimizerStatsRecorder/record
class OptimizerStatsRecorder:    public void record(PlanOptimizer optimizer, long nanos)
    {
        requireNonNull(optimizer, "optimizer is null");
        OptimizerStats optimizerStats = requireNonNull(stats.get(optimizer.getClass()), "optimizer is not registered");
        optimizerStats.record(nanos);
    }