def METHOD_NAME(self, hexagon_launcher, hexagon_session):
    """Get runtime profiling data"""
    prof_out = hexagon_launcher.METHOD_NAME(self, hexagon_session)
    print("lwp json can be found at -- ", prof_out)
    # Process lightweight profiling output into an easily readable csv file
    # The post-processing requires following parameters:
    # 1) Path of the binary file
    # 2) android_serial_number
    # 3) Path of the lwp json file (lwp.json) which gets created in the current directory
    # 4) Path to the run log depending on the environment:
    #    a) For on-device runs:
    #       Use logcat output as the run log
    #    b) For simulator runs:
    #       Use "stdout.txt" as the run log. There is no need to specify the full path to
    #       "stdout.txt" as it will be inferred based on 'prof_out' location.
    # 5) lwp processed output file -  "lwp.csv"
    #
    lwp_csv = self._temp_dir.relpath("lwp.csv")
    if self._android_serial_number == "simulator":
        process_lwp_output(
            self._dso_binary_path, self._android_serial_number, prof_out, "stdout.txt", lwp_csv
        )
    else:
        # For on-device run
        self._proc.kill()  # End the child process for logcat
        self._fo.close()
        if os.path.exists(self._logcat_path):
            process_lwp_output(
                self._dso_binary_path,
                self._android_serial_number,
                prof_out,
                self._logcat_path,
                lwp_csv,
            )
        else:
            raise RuntimeError("Error processing lwp output - missing logcat file")