ltrace equivalent for osx?

后端 未结 3 1560
时光说笑
时光说笑 2020-12-29 06:09

osx has the really powerful dtrace/ktrace/dtruss tools - however i\'m not willing to invest the time necessary to learn dealing with them right now.

what\'s the easi

3条回答
  •  失恋的感觉
    2020-12-29 06:22

    No answer for ltrace (except perhaps "work out how to use dtrace" :-) ), but for system call tracing ala strace, dtruss is a pretty 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"
    

提交回复
热议问题