From hb at biostat.ucsf.edu  Sun Nov 23 02:41:25 2014
From: hb at biostat.ucsf.edu (Henrik Bengtsson)
Date: Sat, 22 Nov 2014 17:41:25 -0800
Subject: [Rd] Rprof(...,
	memory.profiling=TRUE) to profile C memory allocation?
Message-ID: <CAFDcVCSV1BXP53PBrU1TFANtLF5CXqpVG8W_P5kJrSg1u-cu-A@mail.gmail.com>

Could someone please confirm/refute that Rprof(...,
memory.profiling=TRUE) can also be used to profile memory allocation
done in a C function (src/*.c) that uses, e.g.

  allocVector(INTSXP, n)

but also allocations such as

 R_alloc(n, sizeof(int))

?

Modulo how R was built, does the answer depend on OS?  I'm interested
in all the major ones (Linux, OS X and Windows).

Thanks,

Henrik



[Rd] Rprof(..., memory.profiling=TRUE) to profile C memory allocation?
Henrik Bengtsson