In-Game Memory Usage Info

Griggs
Unregistered
 
Post: #1
Hi.
I am getting back into the swing of things and making a game again.

My game is Carbon OpenGL

Question:
What is the best (read: fastest) way to get stats about application memory usage in-game? Ideally I would like to be able to break down the usage by RAM, VRAM, etc. This would also be useful for tracking leaks.

Is there a good way to do this?

(and yes, I do use top, but I would like the info in-game.)

Thanks!
Quote this message in a reply
zzajin
Unregistered
 
Post: #2
Maybe not the best way (probably too slow), but you can get the top info in-game.
You can run terminal commands from carbon - there is sample on code on the Apple site.

Then run "top -l5 -s0.01 -w | grep your_game"

and parse out the info
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Info for working with image files? hypnotx 1 2,224 Jun 4, 2007 01:40 PM
Last Post: maximile
  How to access the game memory to withdraw information utopianbl 3 2,880 Dec 6, 2006 04:08 PM
Last Post: Blacktiger
  Effects of improper/different namespace usage. Jones 8 3,604 Sep 18, 2006 06:40 AM
Last Post: TomorrowPlusX
  Trouble With NSDate Usage Xenos 11 5,170 Sep 11, 2006 05:45 AM
Last Post: Xenos
  System Info deekpyro 18 8,144 May 25, 2002 02:50 PM
Last Post: Chris Burkhardt