search for: r_memreportingoutfile

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

2011 Aug 14
0
Improved version of Rprofmem
...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 void R_ReportNewPage(); -#endif extern SEXP framenames; @@ -790,9 +797,7 @@ if (page == NULL) mem_err_malloc((R_size_t) R_PAGE_SIZE);...
2016 Jun 04
1
RProfmem output format
...ommit. 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 page:"); R_OutputStackTrace(R_MemReportingOutfile); } return; } Cou...