Marginal information for run length from profile

Description

Run length count, by node and run length, from profile.

Usage

1

Arguments

sprof

a sprof data structure with profiling information.

clean

boolean.

Details

If clean=TRUE, zero results are removed and the nodes are sorted by average time.

If clean=TRUE, zero results and sorting are preserved. Trailing nodes with zero count may have been lost in the process, and are added.

Value

A matrix count[node, run length] with a column giving the number of runs by run length and three additional columns

nr_runs

sum of counts over all run lengths.

total_time

sum of count*run length

avg_time

total_time / count

Author(s)

G√ľnther Sawitzki <gsawitzki@users.r-forge.r-project.org>

Examples

1
2

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.