search for: r_reportalloc

Displaying 2 results from an estimated 2 matches for "r_reportalloc".

2016 Jun 04
1
RProfmem output format
...ill just > assume it's wrong. When I search the code and the commit history (https://github.com/wch/r-source/commit/3d5eb2a09f2d75893efdc8bbf1c72d17603886a0), it appears that this was there from the very first commit. Also, searching the code for usages of R_OutputStackTrace(), I only find R_ReportAllocation() and R_ReportNewPage(), both part of of src/main/memory.c (see below). static void R_ReportAllocation(R_size_t size) { if (R_IsMemReporting) { if(size > R_MemReportingThreshold) { fprintf(R_MemReportingOutfile, "%lu :", (unsigned long) size); R_OutputStackTrace(R_MemRe...
2011 Aug 14
0
Improved version of Rprofmem
...101, 1, {PP_FUNCALL, PREC_FN, 0}}, Index: src/main/memory.c =================================================================== --- src/main/memory.c (revision 35) +++ src/main/memory.c (working copy) @@ -220,10 +220,17 @@ # define FORCE_GC 0 #endif -#ifdef R_MEMORY_PROFILING -static void R_ReportAllocation(R_size_t); +/* Declarations relating to Rprofmem */ + +static int R_IsMemReporting; +static int R_MemReportingToTerminal; +static int R_MemPagesReporting; +static int R_MemDetailsReporting; +static FILE *R_MemReportingOutfile; +static R_size_t R_MemReportingThreshold; +static R_len_t R_MemRepo...