In-Game Memory Usage Info

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

My game is Carbon OpenGL

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.)

Quote this message in a reply
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 3,221 Jun 4, 2007 01:40 PM
Last Post: maximile
  How to access the game memory to withdraw information utopianbl 3 4,423 Dec 6, 2006 04:08 PM
Last Post: Blacktiger
  Effects of improper/different namespace usage. Jones 8 6,170 Sep 18, 2006 06:40 AM
Last Post: TomorrowPlusX
  Trouble With NSDate Usage Xenos 11 8,570 Sep 11, 2006 05:45 AM
Last Post: Xenos
  System Info deekpyro 18 14,414 May 25, 2002 02:50 PM
Last Post: Chris Burkhardt