summaryRprof              package:utils              R Documentation

_S_u_m_m_a_r_i_s_e _O_u_t_p_u_t _o_f _R _P_r_o_f_i_l_e_r

_D_e_s_c_r_i_p_t_i_o_n:

     Summarise the output of the 'Rprof' function to show the amount of
     time used by different R functions.

_U_s_a_g_e:

     summaryRprof(filename = "Rprof.out", chunksize = 5000)

_A_r_g_u_m_e_n_t_s:

filename: Name of a file produced by 'Rprof()'

chunksize: Number of lines to read at a time

_D_e_t_a_i_l_s:

     This function is an alternative to 'R CMD Rprof'. It provides the
     convenience of an all-R implementation but will be slower for
     large files.

     As the profiling output file could be larger than available
     memory, it is read in blocks of 'chunksize' lines. Increasing
     'chunksize' will make the function run faster if sufficient memory
     is available.

_V_a_l_u_e:

     A list with components 

 by.self: Timings sorted by 'self' time

by.total: Timings sorted by 'total' time

sampling.time: Total length of profiling run

_S_e_e _A_l_s_o:

     The chapter on "Tidying and profiling R code" in "Writing R
     Extensions" (see the 'doc/manual' subdirectory of the R source
     tree).

     'Rprof'

_E_x_a_m_p_l_e_s:

     ## Not run: 
     ## Rprof() is not available on all platforms
     Rprof(tmp <- tempfile())
     example(glm)
     Rprof()
     summaryRprof(tmp)
     unlink(tmp)
     ## End(Not run)

