private Event getEvent(final HttpServletRequest req) {
    final String eventArg = req.getParameter("event");
    if (eventArg != null) {
      Event event = Event.fromInternalName(eventArg);
      return event == null ? Event.CPU : event;
    }
    return Event.CPU;
  }
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