From 4c13256dce57776b6ce5ae5e2ce4fff52f6e2ab8 Mon Sep 17 00:00:00 2001 From: Yordan Dimitrov Date: Wed, 15 Aug 2018 15:54:37 +0300 Subject: Importing agl-service-taskmanager code The service queries /proc for system statistics data and collects data for all processes currently running on the system. The data for each consists of process name, process ID, user, system CPU usage, user CPU usage, memory and state. The data is then converted to JSON and sent to the requesting app. v1 - removed trailing whitespaces - added description in the README file - removed URL from config.cmake v2 - added project URL to config.cmake Change-Id: I7670c239191ee9b7333d5a383f1b2fcf6bc774c1 Signed-off-by: Yordan Dimitrov --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..113a38e --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +##AGL-task-manager + +Task Manager service queries the system folder /proc to collect data on +the processes currently running on the machine. Information such as +process name, process ID, user, system CPU usage, user CPU usage, resident memory and state. + + +## Verbs + +| Name | Description | +|:-------------------|:------------------------------------------| +| get_process_list | retrieves the current processes from /proc| + + +## JSON response is an array of process entries each containing the values described below + +| Name | Description | +|:------------|-------------------------------------------------| +| cmd | name of each process | +| tid | unique process ID | +| euid | process user | +| scpu | % of CPU time used by process in kernel mode | +| ucpu | % of CPU time used by process in user time | +| resident_mem| amount of resident memory used | +| state | state of process | + -- cgit 1.2.3-korg