bprof r14 - in trunk: . mempattern



Author: stefkost
Date: Thu Sep 11 12:20:56 2008
New Revision: 14
URL: http://svn.gnome.org/viewvc/bprof?rev=14&view=rev

Log:
	* mempattern/Makefile:
	  Remove, we have autofoo now.
	* mempattern/Makefile.am:
	* mempattern/mempattern.1:
	* mempattern/mempattern-plot.1:
	* mempattern/mempattern.txt:
	  More docs and also install man pages.
	* mempattern/mp.c:
	  Add fixme.



Added:
   trunk/mempattern/mempattern.1
Removed:
   trunk/mempattern/Makefile
   trunk/mempattern/mempattern.txt
Modified:
   trunk/ChangeLog
   trunk/mempattern/Makefile.am
   trunk/mempattern/mempattern-plot.1
   trunk/mempattern/mp.c

Modified: trunk/mempattern/Makefile.am
==============================================================================
--- trunk/mempattern/Makefile.am	(original)
+++ trunk/mempattern/Makefile.am	Thu Sep 11 12:20:56 2008
@@ -13,6 +13,8 @@
 test_LDADD = $(BASE_DEPS_LIBS)
 test_CFLAGS = $(BASE_DEPS_CFLAGS)
 
+man_MANS = mempattern-plot.1 mempattern.1
+
 dist_bin_SCRIPTS = mempattern mempattern-plot
 
 EXTRA_DIST = mempattern.in

Modified: trunk/mempattern/mempattern-plot.1
==============================================================================
--- trunk/mempattern/mempattern-plot.1	(original)
+++ trunk/mempattern/mempattern-plot.1	Thu Sep 11 12:20:56 2008
@@ -11,6 +11,8 @@
 .B	/tmp/mp_time.log
 .br
 .B	/tmp/mp_use.log
+.br
+.B	/tmp/mp_use.log
 
 .SH COPYRIGHT
 Copyright (C) 2008 Nokia Corporation.
@@ -18,5 +20,8 @@
 This is free software.  You may redistribute copies of it under the
 terms of the GNU Library General Public License v2 included with the software.
 There is NO WARRANTY, to the extent permitted by law.
-
+.SH AUTHORS
+.TP
+Stefan Kost
+.RI < ensonic users sf net >
 

Added: trunk/mempattern/mempattern.1
==============================================================================
--- (empty file)
+++ trunk/mempattern/mempattern.1	Thu Sep 11 12:20:56 2008
@@ -0,0 +1,54 @@
+.TH MEMPATTERN 1 "2008-09-11" "libmempattern"
+.SH NAME
+mempattern - run application under libmempattern monitor
+.SH SYNOPSIS
+mempattern \fIbinary\fP
+.SH DESCRIPTION
+\fImempattern\fP is a helper script to LD_PRELOAD libmempattern when executing
+the given \fIbinary\fP. It supports various environment variable to customize
+the behaviour.
+.PP
+Sending a SIGHUP to the process will trigger a dump of current allocations to
+\fbfrag.log\fP.
+.SH FILES
+.br
+.B	/tmp/mp_time.log
+Allocations by time.
+.br
+.B	/tmp/mp_use.log
+Total memory usage over time.
+.br
+.B	/tmp/mp_frag.log
+Snapshot of allocations, triggered by SIGHUP.
+.br
+.B	/tmp/mp_bt.log
+Backtraces for allocations.
+.SH ENVIRONMENT
+.B 
+.IP MP_LOG_BASE
+Basename for the logfiles. Default is \fbtempdir()/mp_\fP.
+.B 
+.IP MP_LOG_START
+Start logging after n seconds. Can be a fraction.
+.B 
+.IP MP_USAGE_SCALE
+Scale allocation sizes, by dividing by the given value. Default is 1.
+.B 
+.IP MP_TRACE_SIZE
+Log backtraces for all allocation for the given byte size. By default it will
+issue a breakpoint, that can be caught by a debugger.
+.B 
+.IP MP_TRACE_INTERACTIVE
+If 0 log all allocation traces for the given size to the bt.log.
+
+.SH COPYRIGHT
+Copyright (C) 2008 Nokia Corporation.
+.PP
+This is free software.  You may redistribute copies of it under the
+terms of the GNU Library General Public License v2 included with the software.
+There is NO WARRANTY, to the extent permitted by law.
+.SH AUTHORS
+.TP
+Stefan Kost
+.RI < ensonic users sf net >
+

Modified: trunk/mempattern/mp.c
==============================================================================
--- trunk/mempattern/mp.c	(original)
+++ trunk/mempattern/mp.c	Thu Sep 11 12:20:56 2008
@@ -172,6 +172,7 @@
   FILE *use_log;
 
   if (ts >= mp_log_start) {
+    // FIXME: maybe number those, or have a timestamp in the name
     if ((use_log = fopen (mp_use_log_name, "at"))) {
       gchar ts_str[G_ASCII_DTOSTR_BUF_SIZE];
   



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]