| OS X - Development and Darwin Discussion and questions about development for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Aug 03, 2004
Posts: 39
![]() |
I use Rational Purify all the time at work, but it's only available for SunOS, Irix, redhat, and windows. Can anyone recommend a similar tool for OS X? I have seen a code called OmniObjectMeter, but it looks like it can only handle full-fledged applications which have been linked through Project Builder, not simple command line linked applications (e.g. an a.out which links in nothing and prints "hello world" to the terminal).
Also, I have a long standing problem with debug-compiled (-g) objects which essentially makes gdb inconvenient and useless. Whenever I enter gdb, I always have to provide it the directories where the original source code objects are located. This is not trivial when I am linking in several dozen libraries or building different variants of codes under different source trees. Is there a way for gcc to encode the full paths into the objects to make gdb less cumbersome? Thanks. |
| QUOTE Thanks | |
![]() Member Since: Mar 09, 2004
Location: Miami FL
Posts: 2,860
![]() Mac Specs: G4 1Ghz OS X 10.4.7
|
|
| QUOTE Thanks | |
![]() Member Since: Aug 03, 2004
Posts: 39
![]() |
void Blort() { int *a = new int [10000]; a[0] = 5; } int main() { while (1) Blort(); return 0; } |
||||
| QUOTE Thanks | |||||
![]() Member Since: Mar 09, 2004
Location: Miami FL
Posts: 2,860
![]() Mac Specs: G4 1Ghz OS X 10.4.7
|
|
| QUOTE Thanks | |
|
Guest
Posts: n/a
|
But I've never used it. I typically use the memory management tools that come with Xcode. In one of the menus (not on a mac right now so I cant say exactly)... Debug probably, you'll see "Run with..." and there are several apps in there. The one that has the icon that looks like a melting icecube is my favorite. Wish I could tell you the name, but my brain is goo. |
| QUOTE Thanks | |
![]() Member Since: Aug 03, 2004
Posts: 39
![]() |
Thanks for the pointer dr_springfield. Unfortunately, that doesn't seem able to work with plain vanilla g++ compiled code either:
% leaks ./a.out leaks cannot find a process you have access to which has a name like './a.out' Also, is there anything to trap memory errors such as UMRs (uninitialized memory reads) or FMRs (freed memory reads) as they happen? I'm interested in something that doesn't require the target application to link in the Carbon lib because I am working with codes that compile on multiple architectures (mainly different flavors of Unix). Thanks. |
| QUOTE Thanks | |
|
Guest
Posts: n/a
|
Quote:
Leaks only works on running executables. It's irritating, but you can just make your code wait for input when you want to check for memory leaks, and then run the command then. Also check out the "heap" and "malloc_history" commands. Quote:
|
||
| QUOTE Thanks | |||
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Powerbook 15" Aluminum Memory Upgrade | JayJay | Apple Notebooks | 12 | 07-22-2004 12:24 PM |
| HELP! Memory upgrade nightmare | Nobody | Apple Notebooks | 6 | 01-14-2004 02:33 PM |
| Looking for 512MB, SO-DIMM 3.3V memory | shobhan | Apple Desktops | 1 | 12-27-2003 11:59 AM |
| Memory | Mac Apple | Apple Desktops | 1 | 12-19-2003 08:45 AM |
| Trans Intl. offers 1GB iBook G4 memory modules | Murlyn | Apple Notebooks | 0 | 11-12-2003 01:41 AM |
All times are GMT -4. The time now is 02:23 PM.
Powered by vBulletin