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)

