Re: Measuring memory footprint in C/C++ code on FreeBSD

看板FB_hackers作者時間14年前 (2011/10/21 07:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/11 (看更多)
On 21/10/2011, at 4:27, Razmig K wrote: > I think that it would be difficult to achieve the task in a = platform-transparent manner, that's why I'll be using /proc/<pid>/status = on Linux, and do something else on FreeBSD. > I was adviced to have a look on getrusage, which I did, but I found = descriptions of certain fields of struct rusage in the manpage too = cryptic to make a proper use of the call. > Could someone please point me in the right direction? getrusage should be portable and the man page (at least on FreeBSD) = explains each of the fields. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #1EeAWlJv (FB_hackers)
討論串 (同標題文章)
完整討論串 (本文為第 2 之 11 篇):
文章代碼(AID): #1EeAWlJv (FB_hackers)