Package 'procmaps'

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

Help Index


Does a path represent R's main library?

Description

For a vector of paths, checks if the basename matches libR or R. This is useful to detect the addresses occupied by R itself.

Usage

path_is_libr(path)

Arguments

path

A character vector of paths

Value

A logical vector of the same length as path.

Examples

map <- procmap_get()
path_is_libr(map$pathname)

Get the address space map of a process

Description

Returns the address space map of a process as a data frame.

Usage

procmap_get(..., as_tibble = NULL)

Arguments

...

Reserved for future extensions, must be empty.

as_tibble

When using in a package, set to TRUE to return a tibble::tibble. This requires the tibble package to be installed. The default returns a tibble if the package is installed, otherwise a data frame.

Value

A data frame or tibble, depending on the as_tibble argument.

Examples

procmap_get()