getCXTUResourceUsage: Information about the resources a translation unit consumed

View source: R/clang.R

getCXTUResourceUsageR Documentation

Information about the resources a translation unit consumed

Description

This function gets information about the different resources and how many of each parsing a translation unit consumed. These include items such as different types of memory, the number of expressions, etc.

Usage

getCXTUResourceUsage(tu)

Arguments

tu

the CXTranslationUnit object or an object that can be coerced to a translation unit.

Value

a numeric vector with named elements describing the resources and how much of that resource was used.

Author(s)

Duncan Temple Lang

References

libclang http://clang.llvm.org/doxygen/group__CINDEX.html

See Also

getCursorTranslationUnit

Examples

f = system.file("exampleCode", "fib.c", package = "RCIndex")
tu = createTU(f)
getCXTUResourceUsage(tu)

omegahat/RClangSimple documentation built on Jan. 17, 2024, 6:27 p.m.