Provides a comprehensive analysis of a single function including time breakdown, callers, callees, and source context if available.
Examples
p <- pv_example()
pv_focus(p, "inner")
#> Function 'inner' not found in profiling data.
#>
#> Available functions (top 20 by time):
#> process_data
#> generate_data
#> rnorm
#> x[i] <- rnorm(1)
#> result[i] <- sqrt(abs(x[i])) * 2
#> transform_data
#>
#> Run pv_help() to see all available functions.
