search for: r_ismemreport

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

2011 Aug 14
0
Improved version of Rprofmem
...================================================ --- 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_MemReportingNElem; +static void R_ReportAllocation (R_size_t, SEXPTYPE, R_len_t); static vo...
2016 Jun 04
1
RProfmem output format
...f1c72d17603886a0), 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_MemReportingOutfile); } } return; } static void R_ReportNewPage(void) { if (R_IsMemReporting) { fprintf(R_MemReportingOutfile, "new pag...