From owner-freebsd-questions@FreeBSD.ORG Mon Aug 30 10:21:16 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7B8E106566C for ; Mon, 30 Aug 2010 10:21:16 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 8EE888FC08 for ; Mon, 30 Aug 2010 10:21:16 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Oq1UI-0007HM-QU for freebsd-questions@freebsd.org; Mon, 30 Aug 2010 12:21:14 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Aug 2010 12:21:14 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Aug 2010 12:21:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Mon, 30 Aug 2010 12:21:06 +0200 Lines: 7 Message-ID: References: <4C7B80F2.3050301@rawbw.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100518 Thunderbird/3.0.4 In-Reply-To: <4C7B80F2.3050301@rawbw.com> X-Enigmail-Version: 1.0.1 Subject: Re: Can I know how many bytes were allocated by malloc in my process? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 10:21:16 -0000 On 08/30/10 11:59, Yuri wrote: > google-perftools malloc library has such feature. > But does FreeBSD system allocator have it? Maybe getrusage(2) can help you, though it also counts non-malloc() allocations.