• Returns the process stats.

    Parameters

    • pid: number = 0

      The process pid

    • children: boolean = false

      If process children should be taken into account.

    Returns Promise<ProcessStat>