Title: | Portable Address Space Mapping |
---|---|
Description: | Portable '/proc/self/maps' as a data frame. Determine which library or other region is mapped to a specific address of a process. -- R packages can contain native code, compiled to shared libraries at build or installation time. When loaded, each shared library occupies a portion of the address space of the main process. When only a machine instruction pointer is available (e.g. from a backtrace during error inspection or profiling), the address space map determines which library this instruction pointer corresponds to. |
Authors: | Kirill Müller [aut, cre] , R Consortium [fnd], Kostya Serebryany [ctb] (Bundled gperftools library), Sanjay Ghemawat [ctb] (Bundled gperftools library), Craig Silverstein [ctb] (Bundled gperftools library), Google Inc. [cph] (Bundled gperftools library) |
Maintainer: | Kirill Müller <[email protected]> |
License: | GPL-3 |
Version: | 0.0.5.9008 |
Built: | 2024-10-28 02:22:10 UTC |
Source: | https://github.com/r-prof/procmaps |
For a vector of paths, checks if the basename matches libR
or R
.
This is useful to detect the addresses occupied by R itself.
path_is_libr(path)
path_is_libr(path)
path |
A character vector of paths |
A logical vector of the same length as path
.
map <- procmap_get() path_is_libr(map$pathname)
map <- procmap_get() path_is_libr(map$pathname)
Returns the address space map of a process as a data frame.
procmap_get(..., as_tibble = NULL)
procmap_get(..., as_tibble = NULL)
... |
Reserved for future extensions, must be empty. |
as_tibble |
When using in a package, set to |
A data frame or tibble, depending on the as_tibble
argument.
procmap_get()
procmap_get()