public void endPerfLogging() {
    PerfLogger perfLogger = SessionState.getPerfLogger();
    perfLogger.perfLogEnd(this.getClass().getName(), PerfLogger.OPTIMIZER);
  }
All transformation steps implement this interface.

@param pctx
         input parse context
@return ParseContext
@throws SemanticException
ql/src/java/org/apache/hadoop/hive/ql/optimizer/Transform.java