Description Usage Arguments Examples
focus
allows you to navigate a complicated call stack with a flexible
navigation specification. auto_focus
is called automatically to zoom
into the file that occupies the majority of the current level - this is
particularly useful for gctorture
.
1 2 3 | focus(x, f = NULL, filename = NULL, ref = NULL)
auto_focus(x)
|
x |
a line profile |
f |
a character vector providing a sequence of calls |
filename |
base name of the file |
ref |
a reference of the form |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
# Line profiling the profile parsing code
(x <- lineprof(parse_prof(find_ex("read-delim.prof"))))
# Zoom into line 38
(x1 <- focus(x, ref = "parse.r#38"))
# Zoom into the lapply
(x2 <- focus(x1, f = c("lapply", "FUN")))
align(x2)
# Zoom into line 21
(x3 <- focus(x2, ref = "parse-ref.r#21"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.