1.

Point out the correct statement?(a) Rprofiler() tabulates how much time is spent inside each function(b) Rprof() keeps track of the function call stack at regularly sampled intervals(c) By default, the profiler samples the function call stack every 2 seconds(d) R must not be compiled with profiler supportThis question was posed to me in an interview for internship.This intriguing question comes from R Profiler topic in division Profiling, Simulation and Data Analysis of R Programming

Answer»

The CORRECT answer is (b) Rprof() keeps TRACK of the FUNCTION CALL stack at regularly sampled intervals

Easy explanation: The profiler is started by CALLING the Rprof() function.



Discussion

No Comment Found

Related InterviewSolutions