[Trilinos-Users] Is there any method in Trilinos classes thatreturns the amount of memory allocated?

Bartlett, Roscoe A rabartl at sandia.gov
Thu Dec 13 09:28:34 MST 2007


Ernesto,

Developing such a tool would require redefining the global ::new and
::delete functions.  There are lots of issues involved in doing this but
this is not something to be taken lightly (see Item 50 in "Effective
C++: Third Edition").  If Trilinos was an APP that owned the world, this
would be easier.  However, since Trilinos is a library this would be
very hard to do.  This would mean that everyone stop using the built-in
new/delete operators and instead use some Trilinos-specific version;
again, very hard to do ...

Cheers,

Ross

-----Original Message-----
From: trilinos-users-bounces at software.sandia.gov
[mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of Michael
A Heroux
Sent: Thursday, December 13, 2007 8:59 AM
To: Ernesto Prudencio; trilinos-users at software.sandia.gov
Subject: Re: [Trilinos-Users] Is there any method in Trilinos classes
thatreturns the amount of memory allocated?

There is no global memory tracking in Trilinos.  We have discussed this,
but never moved toward providing it.

Mike


On 12/12/07 6:42 PM, "Ernesto Prudencio" <prudenci at slac.stanford.edu>
wrote:

> 
> Thanks,
> 
> Ernesto.
> 
> 
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users

_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov
http://software.sandia.gov/mailman/listinfo/trilinos-users



More information about the Trilinos-Users mailing list