ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
process_memory.cpp File Reference

Resident memory of a process, or of a process group, read from the operating system. More...

#include "process_memory.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <vector>
Include dependency graph for process_memory.cpp:

Go to the source code of this file.

Functions

std::size_t provsql_process_rss (pid_t pid)
 The resident memory of process pid, in bytes, or 0 where the platform does not say.
std::size_t provsql_process_group_rss (pid_t pgid)
 The resident memory of the processes of group pgid, in bytes, or 0 where the platform does not say.

Detailed Description

Resident memory of a process, or of a process group, read from the operating system.

See process_memory.h.

Definition in file process_memory.cpp.

Function Documentation

◆ provsql_process_group_rss()

std::size_t provsql_process_group_rss ( pid_t pgid)

The resident memory of the processes of group pgid, in bytes, or 0 where the platform does not say.

Definition at line 75 of file process_memory.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ provsql_process_rss()

std::size_t provsql_process_rss ( pid_t pid)

The resident memory of process pid, in bytes, or 0 where the platform does not say.

Definition at line 47 of file process_memory.cpp.

Here is the caller graph for this function: