等效于osx的ltrace吗? [英] ltrace equivalent for osx?

查看:73
本文介绍了等效于osx的ltrace吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

osx具有真正强大的dtrace/ktrace/dtruss工具-但是我不愿意花费必要的时间来学习如何处理它们.

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.

在OSX上获得linux ltrace(可能还有strace)的等效功能的最简单方法是什么?

what's the easiest way to get the equivalent functionality of linux ltrace (and possibly strace) on OSX?

推荐答案

ltrace没有答案(也许找出如何使用dtrace" :-)除外),但是对于系统调用跟踪ala strace来说,dtruss非常好dtrace的前端.

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.

例如

dtruss df -h     # run and examine the "df -h" command

dtruss -p 1871   # examine PID 1871

dtruss -n tar    # examine all processes called "tar"

这篇关于等效于osx的ltrace吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆