private Output getOutput(final HttpServletRequest req) {
    final String outputArg = req.getParameter("output");
    String outputFormat = outputArg.trim().toUpperCase();
    if (req.getParameter("output") != null) {
      try {
        return Output.valueOf(outputFormat);
      } catch (IllegalArgumentException e) {
        LOG.warn("Output format value '{}' is invalid, returning with default HTML", outputFormat);
        return Output.HTML;
      }
    }
    return Output.HTML;
  }
Get the path of the profiler script to be executed.
Before async-profiler 3.0, the script was named profiler.sh, and after 3.0 it's bin/asprof
@return
common/src/java/org/apache/hive/http/ProfileServlet.java