[ACCEPTED]-ltrace equivalent for osx?-strace
No answer for ltrace (except perhaps "work 3 out how to use dtrace" :-) ), but for system 2 call tracing ala strace, dtruss is a pretty 1 good front end to dtrace.
e.g.
dtruss df -h # run and examine the "df -h" command
dtruss -p 1871 # examine PID 1871
dtruss -n tar # examine all processes called "tar"
you don't need to learn dtrace to use it. there 3 are quite a few dtrace scripts that come 2 with OSX. To see an (incomplete) list:
man 1 -k dtrace
In your case dapptrace
might do the job.
I'd suggest that DTrace is not as complex 7 as you think it is. I just wrote a two-part 6 tutorial on using DTrace to tune Cocoa applications 5 for the Mac or iPhone, which can be found 4 here and here. I came into it thinking that DTrace 3 would be extremely difficult to work with, but 2 it turns out to be reasonably straightforward 1 to use.
More Related questions
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.