From tlumley at u.washington.edu  Mon May 29 17:27:18 2006
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Mon, 29 May 2006 08:27:18 -0700 (PDT)
Subject: [Rd] memory profiling
In-Reply-To: <Pine.LNX.4.64.0605261544530.26987@gannet.stats.ox.ac.uk>
References: <4476F312.4090902@jhsph.edu>
	<Pine.LNX.4.64.0605261544530.26987@gannet.stats.ox.ac.uk>
Message-ID: <Pine.LNX.4.64.0605290823400.8687@homer23.u.washington.edu>

On Fri, 26 May 2006, Prof Brian Ripley wrote:
> On Fri, 26 May 2006, Roger D. Peng wrote:
>
>> I'm interested in playing around with memory profiling in R-devel (as described
>> at http://developer.r-project.org/memory-profiling.html) and was trying to
>> figure out how to compile R-devel so that I can use the 'tracemem()' function.
>> But I can't figure out how/where to set R_MEMORY_PROFILING.  Is it on the
>> configure command line?
>
> I added -DR_MEMORY_PROFILING to CFLAGS in config.site.  An alternative is
> to add this to DEFS in Makeconf after configuring.
>
> Probably in due course there will be a way to do it via configure and
> config.h, but I do not see one.
>

Yes, adding the -DR_MEMORY_PROFILING to CFLAGS is the intended way to do 
it at the moment. In due course there will be a configure option, but 
definitely not until after useR.

 	-thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle



[Rd] memory profiling
Thomas Lumley