From 8493e5013b343a5d7bf9d9db4381f336da6c4fa3 Mon Sep 17 00:00:00 2001 From: Hyotaek Shim Date: Wed, 10 Mar 2021 11:00:09 +0900 Subject: [PATCH] Change the order of enum keys in process_memory_info_key_e Change-Id: I4c6eb392e4959ac9c2cd4702be34c333e83b8d6f Signed-off-by: Hyotaek Shim --- include/runtime_info-internal.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/include/runtime_info-internal.h b/include/runtime_info-internal.h index 460f9c1..4bfcb5a 100644 --- a/include/runtime_info-internal.h +++ b/include/runtime_info-internal.h @@ -24,16 +24,17 @@ extern "C" #endif typedef enum { - RUNTIME_INFO_PROC_MEMORY_VSZ = 100, /**< Virtual memory size (KiB) */ - RUNTIME_INFO_PROC_MEMORY_RSS = 200, /**< Resident set size (KiB) */ - RUNTIME_INFO_PROC_MEMORY_PSS = 300, /**< Proportional set size (KiB) */ - RUNTIME_INFO_PROC_MEMORY_GPU = 400, /**< GPU memory size (KiB) */ - RUNTIME_INFO_PROC_MEMORY_GEM_RSS = 500, /**< Resident set size in graphic execution manager (KiB) */ - RUNTIME_INFO_PROC_MEMORY_SWAP = 600, /**< SWAP memory size (KiB) */ - RUNTIME_INFO_PROC_MEMORY_SHARED_CLEAN = 700, /**< Not modified and mapped by other processes (KiB) */ - RUNTIME_INFO_PROC_MEMORY_SHARED_DIRTY = 800, /**< Modified and mapped by other processes (KiB) */ - RUNTIME_INFO_PROC_MEMORY_PRIVATE_CLEAN = 900, /**< Not modified and available only to that process (KiB) */ - RUNTIME_INFO_PROC_MEMORY_PRIVATE_DIRTY = 1000,/**< Modified and available only to that process (KiB) */ + RUNTIME_INFO_PROC_MEMORY_VSZ = 100, /**< Virtual memory size (KiB) */ + RUNTIME_INFO_PROC_MEMORY_RSS = 200, /**< Resident set size (KiB) */ + RUNTIME_INFO_PROC_MEMORY_PSS = 300, /**< Proportional set size (KiB) */ + RUNTIME_INFO_PROC_MEMORY_SHARED_CLEAN = 400, /**< Not modified and mapped by other processes (KiB) */ + RUNTIME_INFO_PROC_MEMORY_SHARED_DIRTY = 500, /**< Modified and mapped by other processes (KiB) */ + RUNTIME_INFO_PROC_MEMORY_PRIVATE_CLEAN = 600, /**< Not modified and available only to that process (KiB) */ + RUNTIME_INFO_PROC_MEMORY_PRIVATE_DIRTY = 700, /**< Modified and available only to that process (KiB) */ + RUNTIME_INFO_PROC_MEMORY_SWAP = 800, /**< SWAP memory size (KiB) */ + RUNTIME_INFO_PROC_MEMORY_GPU = 900, /**< GPU memory size (KiB) */ + RUNTIME_INFO_PROC_MEMORY_GEM_RSS = 1000, /**< Resident set size in graphic execution manager (KiB) */ + } process_memory_info_key_e; int runtime_info_get_process_memory_value_int(int *pid, int size, process_memory_info_key_e key, int **info); -- 2.7.4