![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <stdint.h>
Include dependency graph for memory_pressure.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | DT_MEMORY_PRESSURE_MAX_LEVELS 16 |
Typedefs | |
| typedef struct dt_memory_pressure_watch_t | dt_memory_pressure_watch_t |
Functions | |
| int | dt_memory_pressure_read_full_stall (uint64_t *total_us, int max_levels) |
| dt_memory_pressure_watch_t * | dt_memory_pressure_watch_start (uint64_t stall_us, uint64_t window_us, void(*stalled)(void *user), void *user) |
| void | dt_memory_pressure_watch_stop (dt_memory_pressure_watch_t **watch) |
| int | dt_memory_pressure_watch_levels (const dt_memory_pressure_watch_t *watch) |
| #define DT_MEMORY_PRESSURE_MAX_LEVELS 16 |
Definition at line 36 of file memory_pressure.h.
| typedef struct dt_memory_pressure_watch_t dt_memory_pressure_watch_t |
Definition at line 51 of file memory_pressure.h.
| int dt_memory_pressure_read_full_stall | ( | uint64_t * | total_us, |
| int | max_levels | ||
| ) |
Definition at line 111 of file memory_pressure.c.
References _cgroup_below_root(), _cgroup_parent(), _own_cgroup_path(), _read_full_total(), IS_NULL_PTR, levels(), max_levels, and void().
Referenced by _window_share().
| int dt_memory_pressure_watch_levels | ( | const dt_memory_pressure_watch_t * | watch | ) |
Definition at line 286 of file memory_pressure.c.
References dt_memory_pressure_watch_t::count, IS_NULL_PTR, and void().
Referenced by dt_pixelpipe_cache_pressure_watch_start().
| dt_memory_pressure_watch_t * dt_memory_pressure_watch_start | ( | uint64_t | stall_us, |
| uint64_t | window_us, | ||
| void(*)(void *user) | stalled, | ||
| void * | user | ||
| ) |
Definition at line 227 of file memory_pressure.c.
References _triggers_open(), _watch_close(), _watch_thread(), dt_memory_pressure_watch_t::count, DT_MEMORY_PRESSURE_MAX_LEVELS, dt_memory_pressure_watch_t::fds, IS_NULL_PTR, dt_memory_pressure_watch_t::running, dt_memory_pressure_watch_t::stalled, dt_memory_pressure_watch_t::stop_fd, dt_memory_pressure_watch_t::thread, TRUE, dt_memory_pressure_watch_t::user, and void().
Referenced by dt_pixelpipe_cache_pressure_watch_start().
| void dt_memory_pressure_watch_stop | ( | dt_memory_pressure_watch_t ** | watch | ) |
Definition at line 266 of file memory_pressure.c.
References _watch_close(), IS_NULL_PTR, dt_memory_pressure_watch_t::running, dt_memory_pressure_watch_t::stop_fd, and dt_memory_pressure_watch_t::thread.
Referenced by dt_pixelpipe_cache_pressure_watch_stop().