Tutorial: system.getProcessList

system.getProcessList

Retrieves an array of all of the runtime processes that are currently running. Each element in the array is an object containing the uuid and the name of the application to which the process belongs.

Example

fin.desktop.System.getProcessList(function (list) {
    list.forEach(function (process) {
        console.log("UUID: " + process.uuid + ", Application Name: " + process.name);
    });
});

Process List

//This response has the following shape:
[
    {
        cpuUsage: 23.44, //the percentage of total CPU usage
        name: "appName", //the application name
        nonPagedPoolUsage: 1234, //the current nonpaged pool usage in bytes
        pageFaultCount: 1, //the number of page faults
        pagedPoolUsage: 12, //the current paged pool usage in bytes
        pagefileUsage: 13, //the total amount of memory in bytes that the memory manager has committed
        peakNonPagedPoolUsage: 4, //the peak nonpaged pool usage in bytes
        peakPagedPoolUsage: 23, //the peak paged pool usage in bytes
        peakPagefileUsage: 33, //the peak value in bytes of pagefileUsage during the lifetime of this process
        peakWorkingSetSize: 33, //the peak working set size in bytes
        processId: 33, //the native process identifier
        uuid: "UUID", //the application UUID
        workingSetSize: 33 //the current working set size (both shared and private data) in bytes
    }
]