LibDap
This library contains the basic modules that are used in the products of the family DAP
|
#include "dap_process_memory.h"
#include "../dap_common.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
Macros | |
#define | LOG_TAG "dap_process_mem" |
#define | MAX_LINE_LENGTH 128 |
Functions | |
static size_t | _parse_size_line (char *line) |
static dap_process_memory_t | _get_process_memory (const char *proc_file_path) |
dap_process_memory_t | get_proc_mem_current (void) |
get_proc_mem_current Get information about the amount of RAM consumed for the current process More... | |
dap_process_memory_t | get_proc_mem_by_pid (pid_t pid) |
get_proc_mem_by_pid Obtain information about the amount of RAM consumed for a particular process More... | |
#define LOG_TAG "dap_process_mem" |
#define MAX_LINE_LENGTH 128 |
|
static |
|
static |
dap_process_memory_t get_proc_mem_by_pid | ( | pid_t | pid | ) |
get_proc_mem_by_pid Obtain information about the amount of RAM consumed for a particular process
[in] | pid | PID |
dap_process_memory_t get_proc_mem_current | ( | void | ) |
get_proc_mem_current Get information about the amount of RAM consumed for the current process