getProcessName method

String? getProcessName(
  1. int pid
)

returns the name of the process for the given pid.

Implementation

String? getProcessName(int pid) {
  if (Settings().isWindows) {
    return getWindowsProcessName(pid);
  } else {
    return _getLinuxProcessName(pid);
  }
}