Bill Allombert on Fri, 20 Jan 2023 15:32:03 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: getting memory usage


sn Fri, Jan 20, 2023 at 02:07:45PM +0000, John Cremona wrote:
> In a gp script I can get cpu time between two points, but can I find out
> how much memory was used?  I don't think getstack() does this.

You can use getheap() (in addition to getstack()).

Cheers,
Bill.