Movatterモバイル変換


[0]ホーム

URL:


Cstack_info {base}R Documentation

Report Information on C Stack Size and Usage

Description

Report information on the C stack size and usage (if available).

Usage

Cstack_info()

Details

On most platforms, C stack information is recorded whenR isinitialized and used for stack-checking. If this information isunavailable, thesize will be returned asNA, andstack-checking is not performed.

The information on the stack base address is thought to be accurate onWindows, Linux (usingglibc), macOS and FreeBSD but a heuristicis used on other platforms. Because this might be slightlyinaccurate, the current usage could be estimated as negative. (Theheuristic is not used on embedded uses ofR on platforms where thestack base information is not thought to be accurate.)

The ‘evaluation depth’ is the number of nestedR expressionscurrently under evaluation: this has a limit controlled byoptions("expressions").

Value

An integer vector. This has named elements

size

The size of the stack (in bytes), orNA if unknown.

current

The estimated current usage (in bytes), possiblyNA.

direction

1 (stack grows down, the usual case) or-1 (stack grows up).

eval_depth

The current evaluation depth (including two callsfor the call toCstack_info).

Examples

Cstack_info()

[Packagebase version 4.6.0Index]

[8]ページ先頭

©2009-2025 Movatter.jp