Nan's Dev Blog

Sharing solutions that i found to resolve my problems

Oct 20, 2008

(Linux, Mac OS X) How to get the memory alloc history

There is a good debug tool in Linux and Mac which is gdb, it has a useful command to show the history of a memory allocation.

(gdb) shell malloc_history 2417(processId) 0x35d4f0(memoryAddress)
Posted by Nan Hu at 8:38 PM
Labels: Linux, Mac OS X

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

My photo
Nan Hu
Mobile app developer. (Android and iPhone)
View my complete profile

Blog Archive

  • ►  2013 (1)
    • ►  February (1)
  • ►  2012 (2)
    • ►  June (1)
    • ►  January (1)
  • ►  2011 (1)
    • ►  August (1)
  • ►  2010 (11)
    • ►  December (1)
    • ►  November (1)
    • ►  August (3)
    • ►  July (1)
    • ►  May (4)
    • ►  March (1)
  • ►  2009 (9)
    • ►  December (2)
    • ►  August (1)
    • ►  July (2)
    • ►  March (3)
    • ►  February (1)
  • ▼  2008 (37)
    • ►  December (2)
    • ►  November (1)
    • ▼  October (7)
      • (iPhone) How to create an horizontal scrolling table
      • (iPhone) How to customize an UISwitch's text
      • (Linux, Mac OS X) How to get the memory alloc history
      • (Android) How to sign your Android application
      • (iPhone) How to get ${PRODUCT_NAME} value
      • (XCode) How to compile a XCode project using comma...
      • (Mac OS X) How to resolve the problem that menu ba...
    • ►  September (5)
    • ►  August (5)
    • ►  July (5)
    • ►  June (5)
    • ►  May (7)

Labels

  • iPhone (22)
  • Android (15)
  • Mac OS X (13)
  • Objective-C (12)
  • XCode (8)
  • Java (4)
  • Linux (3)
  • iOS (3)
  • Other (2)
  • C (1)
  • Eclipse (1)
  • SQLite (1)
  • Subversion (1)
Simple theme. Theme images by gaffera. Powered by Blogger.