search for: r_outputstacktrace

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

2016 Jun 04
1
RProfmem output format
...cktrace is empty As a refresher, the problem is that memory allocations an empty stracktrace are reported without newlines, i.e. 192 :360 :360 :1064 :2040 :"raw" The question is why this is not reported as: 192 : 360 : 360 : 1064 : 2040 :"raw" This was/is because C function R_OutputStackTrace() - part of src/main/memory.c - looks like: static void R_OutputStackTrace(FILE *file) { int newline = 0; RCNTXT *cptr; for (cptr = R_GlobalContext; cptr; cptr = cptr->nextcontext) { if ((cptr->callflag & (CTXT_FUNCTION | CTXT_BUILTIN)) && TYPEOF(...
2011 Aug 14
0
Improved version of Rprofmem
...ns and all calls to GetNewPage */ +/* Non-sampling memory use profiler reports vector allocations and/or + calls to GetNewPage */ /*******************************************/ -#ifndef R_MEMORY_PROFILING - -SEXP attribute_hidden do_Rprofmem(SEXP call, SEXP op, SEXP args, SEXP rho) +static void R_OutputStackTrace (void) { - error(_("memory profiling is not available on this system")); - return R_NilValue; /* not reached */ -} + RCNTXT *cptr; + int newline; -#else -static int R_IsMemReporting; /* Rboolean more appropriate? */ -static FILE *R_MemReportingOutfile; -static R_size_t R_M...