print.lineprof: Print reduced line profiling call stack.

Description Usage Arguments Examples

Description

By default, whenever you print a line profile, it is collapsed to two levels deep. You can override this using the depth parameter. reduce_depth is the function that implements this behaviour - you may want to use it if you're processing the line profiling data in other ways.

Usage

1
2
3
4
## S3 method for class 'lineprof'
print(x, digits = 3, depth = 2, ...)

reduce_depth(x, depth = 2)

Arguments

x

a line profiling object

digits

number of digits to use for performance summaries

depth

depth of calls

...

other arguments passed on to format

Examples

1
2
3
4
5
6
# Line profiling the profile parsing code
x <- parse_prof(find_ex("read-delim.prof"))

x
print(x, depth = 3)
print(x, depth = Inf)

hadley/lineprof documentation built on May 17, 2019, 10:42 a.m.