Displaying 1 result from an estimated 1 matches for "rcov_stop".
2014 Mar 05
1
[PATCH] Code coverage support proof of concept
...of stability, compatibility,
maintenance and so on.
I would like to have the code reviewed, and proper guidance on how to
get this feature available at one point in R, in base R or as a
package or patch if other people are interested.
Usage
--------
Rcov_start()
# your code to trace here
res <- Rcov_stop()
res is currently a hashed env, with traced source filenames associated
with 2-columns matrices holding the line numbers and their
frequencies.
How it works
-----------------
I added a test in getSrcref(), that records the line numbers if code
coverage is started.
The overhead should be minimal...