Memory Counter

Alright, Odd question I guess. But is there an easy way to check how much
memory my program is taking up?
I like to sometimes try to see how much I can optimize a program.

-Bryan Arant

I use memusage under Linux to check for peak memory usage of a program.
The running memory usage can be monitored from top plus a little
calculation. There are memory profiling tools, too, like memprof
(again, all of these are for Linux).

I’m sure there are memory profiling tools for other platforms. I don’t
know any specific program names, though. It may come bundled with the
compiler.

-MarkOn Mon, 18 Feb 2002, Bryan Arant wrote:

Alright, Odd question I guess. But is there an easy way to check how much
memory my program is taking up?
I like to sometimes try to see how much I can optimize a program.

-Bryan Arant


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Mark K. Kim
http://www.cbreak.org/mark/
PGP key available upon request.

Actually I’m doing me programming under XP.

But I did a ctrl-alt-delete, and they have a nice memory counter.

Thanks for response.

-Bryan Arant> ----- Original Message -----

From: sdl-admin@libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of
Mark K. Kim
Sent: Tuesday, February 19, 2002 12:35 AM
To: sdl at libsdl.org
Subject: Re: [SDL] Memory Counter

I use memusage under Linux to check for peak memory usage of a program.
The running memory usage can be monitored from top plus a little
calculation. There are memory profiling tools, too, like memprof
(again, all of these are for Linux).

I’m sure there are memory profiling tools for other platforms. I don’t
know any specific program names, though. It may come bundled with the
compiler.

-Mark

On Mon, 18 Feb 2002, Bryan Arant wrote:

Alright, Odd question I guess. But is there an easy way to check how much
memory my program is taking up?
I like to sometimes try to see how much I can optimize a program.

-Bryan Arant


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Mark K. Kim
http://www.cbreak.org/mark/
PGP key available upon request.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Actually I’m doing me programming under XP.

But I did a ctrl-alt-delete, and they have a nice memory counter.

well - i don’t know about memory usage - profiling, memory leeks, and code
coverage is best done using numegas boundschecker (or better their suite,
dev partner studio). its expensive, but its well worth it for professional
products. 6.5 intergrates into visual sudio6 (don’t try and use with the
intel compiler though) we are still waiting for our copy of .NET so i can’t
say how that goes.

if u run your code through a GCC3 compiler or metrowerks it will ensure well
formed code, and NuMega will insure nice fast tight code.

for memory usage i have a (somewot basic at the moment) resource class, that
all resources are allocated thru - this allows me to set a maximum memory
usage, and generate stats too. I would recommend this approach.

riki

The only good way that I know of is a memory manager. You can write your own
one or take a look at this one:
http://www.flipcode.com/cgi-bin/msg.cgi?showThread=12September2000-Presentin
gAMemoryManager&forum=askmid&id=-1

Dirk Gerrits> Alright, Odd question I guess. But is there an easy way to check how much

memory my program is taking up?
I like to sometimes try to see how much I can optimize a program.

-Bryan Arant


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Interesting.
I might take the resource class approach. Thanks.

-Bryan Arant> ----- Original Message -----

From: sdl-admin@libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of
riki
Sent: Tuesday, February 19, 2002 1:04 AM
To: sdl at libsdl.org
Subject: Re: [SDL] Memory Counter

Actually I’m doing me programming under XP.

But I did a ctrl-alt-delete, and they have a nice memory counter.

well - i don’t know about memory usage - profiling, memory leeks, and code
coverage is best done using numegas boundschecker (or better their suite,
dev partner studio). its expensive, but its well worth it for professional
products. 6.5 intergrates into visual sudio6 (don’t try and use with the
intel compiler though) we are still waiting for our copy of .NET so i can’t
say how that goes.

if u run your code through a GCC3 compiler or metrowerks it will ensure well
formed code, and NuMega will insure nice fast tight code.

for memory usage i have a (somewot basic at the moment) resource class, that
all resources are allocated thru - this allows me to set a maximum memory
usage, and generate stats too. I would recommend this approach.

riki


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

The only good way that I know of is a memory manager. You can write your own
one or take a look at this one:
http://www.flipcode.com/cgi-bin/msg.cgi?showThread=12September2000-Presentin
gAMemoryManager&forum=askmid&id=-1

Dirk Gerrits

try the new version :
http://www.fluidstudios.com/publications.html

MurlockFrom: dirkg@chello.nl (Dirk Gerrits)

The only good way that I know of is a memory manager. You can write your
own

one or take a look at this one:

http://www.flipcode.com/cgi-bin/msg.cgi?showThread=12September2000-Presentin

gAMemoryManager&forum=askmid&id=-1

Dirk Gerrits

try the new version :
http://www.fluidstudios.com/publications.html

Murlock

Hey cool. Thanks. :)> From: “Dirk Gerrits” <@Dirk_Gerrits>