Date: Mon, 16 Jun 2008 00:58:41 -0700 From: Maxim Sobolev <sobomax@FreeBSD.org> To: Julian Elischer <julian@elischer.org> Cc: FreeBSD Current <current@FreeBSD.org> Subject: Re: mprof and new systems.. Message-ID: <48561D31.8030000@FreeBSD.org> In-Reply-To: <48537B5F.30207@elischer.org> References: <48537B5F.30207@elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
I am not sure if it's what you are looking for, but there s a small BSD-licensed library at ports/devel/libexecinfo which provides portable way to retrieve call graph without using any asm() magick. Julian Elischer wrote: > mprof is a memory allocation profiler. > > as part of what it does it reads the stack for a call graph. > > it finds the current frame pointer from the address of a variable on > the stack > and then from that traces back to previous return addresses. Regards, -- Maksym Sobolyev Sippy Software, Inc. Internet Telephony (VoIP) Experts T/F: +1-646-651-1110 Web: http://www.sippysoft.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48561D31.8030000>
