static String getAsyncProfilerHome() {
    String asyncProfilerHome = System.getenv(ASYNC_PROFILER_HOME_ENV);
    // if ENV is not set, see if -Dasync.profiler.home=/path/to/async/profiler/home is set
    if (asyncProfilerHome == null || asyncProfilerHome.trim().isEmpty()) {
      asyncProfilerHome = System.getProperty(ASYNC_PROFILER_HOME_SYSTEM_PROPERTY);
    }

    return asyncProfilerHome;
  }
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