pub struct Process {
pub pid: Pid,
pub cache_vmas: bool,
/* private fields */
}Expand description
Configuration for caching of process-level data.
Fields§
§pid: PidThe referenced process’ ID.
cache_vmas: boolWhether to cache the process’ VMAs for later use.
Caching VMAs can be useful, because it conceptually enables the library to serve a symbolization request targeting a process even if said process has since exited the system.
Note that once VMAs have been cached this way, the library will refrain from re-reading updated VMAs unless instructed to. Hence, if you have reason to believe that a process may have changed its memory regions (by loading a new shared object, for example), you would have to make another request to cache them yourself.
Note furthermore that if you cache VMAs to later symbolize
addresses after the original process has already exited, you
will have to opt-out of usage of /proc/<pid>/map_files/ as
part of the symbolization request. Refer to
source::Process::map_files.