-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default to elapsed time where possible #154
Conversation
@@ -163,7 +182,10 @@ profvis <- function(expr = NULL, | |||
} | |||
repeat { | |||
inject(Rprof(prof_output, !!!rprof_args)) | |||
with_profvis_handlers(expr) | |||
cnd <- with_profvis_handlers(expr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to this PR but with_profvis_handlers
captures interrupts so without this there's no way to terminate this loop.
@@ -13,3 +13,13 @@ test_that("Irrelevant stack is trimmed from profiles (#123)", { | |||
out <- repro_profvis(f(), simplify = TRUE) | |||
expect_equal(profvis_modal_value(out$x$message$prof), "pause f") | |||
}) | |||
|
|||
test_that("defaults to elapsed timing", { | |||
skip_on_cran() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
skip on old versions of R?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a helper to match has_simplify()
Fixes #72