From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:38026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGo2W-0005fG-FI for qemu-devel@nongnu.org; Mon, 02 May 2011 03:59:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGo2V-0004Zt-AO for qemu-devel@nongnu.org; Mon, 02 May 2011 03:59:32 -0400 Received: from mail-yi0-f45.google.com ([209.85.218.45]:62230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGo2V-0004Zg-6f for qemu-devel@nongnu.org; Mon, 02 May 2011 03:59:31 -0400 Received: by yib19 with SMTP id 19so2237124yib.4 for ; Mon, 02 May 2011 00:59:30 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Mon, 2 May 2011 09:59:20 +0200 Message-Id: <1304323162-24702-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] add malloc statistics infrastructure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org These patches add a --enable-malloc-stats configure options, which will make qemu trace its memory allocations. A new monitor command dump-malloc-stats lets the user dump them to a file. Using statistics with KVM depends on the patch I posted recently to use qemu_free consistently. However, there is no regression without the configure flag. Paolo Bonzini (2): malloc: move memalign/vmalloc to qemu-malloc.c malloc: add statistics infrastructure configure | 9 ++ hmp-commands.hx | 16 ++++ monitor.c | 12 +++ osdep.h | 5 +- oslib-posix.c | 32 ++------ oslib-win32.c | 31 +------- qemu-common.h | 46 +++++++++-- qemu-malloc.c | 244 +++++++++++++++++++++++++++++++++++++++++++++++++++---- trace-events | 1 - 9 files changed, 316 insertions(+), 80 deletions(-) -- 1.7.4.4