debian/0000755000000000000000000000000012251404600007160 5ustar debian/smemcap.80000644000000000000000000000222712157540177010720 0ustar .TH SMEMCAP 8 "17/06/2013" "" "" .SH NAME smemcap \- Capture memory usage data for later processing by smem. .SH SYNOPSIS .B smemcap .SH DESCRIPTION \fBsmemcap\fP captures data on system to be later processed by \fBsmem\fP. It captures all /proc entries required by \fBsmem\fP and outputs them as an uncompressed .tar file to STDOUT. \fBsmem\fP can analyze the output using the \fB\-\-source\fP option. \fBsmemcap\fP is small and does not require Python. .SH OPTIONS This program does not accept any options. .SH EXAMPLE .br smemcap > memorycapture.tar .SH FILES .I /proc/$pid/cmdline .PP .I /proc/$pid/smaps .PP .I /proc/$pid/stat .PP .I /proc/meminfo .PP .I /proc/version .SH RESOURCES Main Web Site: http://www.selenic.com/smem Source code repository: http://selenic.com/repo/smem Mailing list: http://selenic.com/mailman/listinfo/smem .SH "SEE ALSO" .BR smem (8), .BR free (1), .BR pmap (1), .BR proc (5), .BR ps (1), .BR top (1), .BR vmstat (8) .SH COPYING Copyright (C) 2008-2009 Matt Mackall. Free use of this software is granted under the terms of the GNU General Public License version 2 or later. .SH AUTHOR \fBsmem\fP was written by Matt Mackall. debian/smem.manpages0000644000000000000000000000000712157540177011652 0ustar smem.8 debian/smemcap.install0000644000000000000000000000002012157540177012204 0ustar smemcap usr/bin debian/changelog0000644000000000000000000000427112251400613011036 0ustar smem (1.4-1) unstable; urgency=low * New upstream release. * Bump standards to 3.9.5. -- Michal Čihař Mon, 09 Dec 2013 18:44:41 +0100 smem (1.3-3) unstable; urgency=low * Add missing conflicts after package split (Closes: #717291). -- Michal Čihař Wed, 24 Jul 2013 16:01:41 +0200 smem (1.3-2) unstable; urgency=low * Bump standards to 3.9.4. * Use debhelper 9. * Properly use CPPFLAGS while compiling helper. * Split smemcap utility to separate package (to allow installation on embedded systems). * Adjust manpage to reference smemcap package (LP: #1079856). -- Michal Čihař Mon, 17 Jun 2013 09:57:12 +0200 smem (1.3-1) unstable; urgency=low [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. [ Michal Čihař ] * New upstream release. - Fixes -S (Closes: #701007). -- Michal Čihař Tue, 07 May 2013 11:05:04 +0200 smem (1.2-1) unstable; urgency=low * New upstream release (Closes: #692021). * Build and install smemcap (Closes: #692020). * Bump standards to 3.9.3. * Fix - used in manpages. -- Michal Čihař Thu, 01 Nov 2012 14:17:11 +0100 smem (1.0-1) unstable; urgency=low * New upstream version. * All patches intergrated upstream. * Switch to dh_python2. -- Michal Čihař Mon, 21 Feb 2011 11:07:59 +0100 smem (0.9-4) unstable; urgency=low * Build depend on Python (Closes: #611589). * Bump standards to 3.9.1. -- Michal Čihař Mon, 31 Jan 2011 09:33:56 +0100 smem (0.9-3) unstable; urgency=low * Relax conflict with secure-delete to older versions as 3.1-5 has renamed smem binary. -- Michal Čihař Wed, 06 Jan 2010 09:58:42 +0100 smem (0.9-2) unstable; urgency=low * Use bash for capture example, it uses bashisms which are not easy to avoid. * Add conflict with secure-delete which also provides smem binary (Closes: #562228). -- Michal Čihař Sat, 02 Jan 2010 12:33:45 +0100 smem (0.9-1) unstable; urgency=low * Initial release (Closes: #562179). -- Michal Čihař Wed, 23 Dec 2009 15:23:41 +0100 debian/patches/0000755000000000000000000000000012251404600010607 5ustar debian/patches/series0000644000000000000000000000004012044465766012042 0ustar manpage.patch buildsystem.patch debian/patches/manpage.patch0000644000000000000000000000260112157540270013250 0ustar From: Michal Čihař Subject: Minor fixes to manpage Forwarded: no --- a/smem.8 +++ b/smem.8 @@ -48,7 +48,7 @@ Amount of physical RAM. This lets smem detect the amount of memory used by firmware/hardware in the systemwide (\-w) output. If provided, it will also be used as the total memory size to base percentages on. -Example: --realmem=1024M +Example: \-\-realmem=1024M .TP .BI "\-S " SOURCE ", \-\-source=" SOURCE @@ -154,25 +154,23 @@ .SH EMBEDDED USAGE To capture memory statistics on resource\-constrained systems, the -the \fBsmem\fP source includes a utility named \fBsmemcap\fP. +the \fBsmemcap\fP package includes a utility named \fBsmemcap\fP. \fBsmemcap\fP captures all /proc entries required by \fBsmem\fP and outputs them as an uncompressed .tar file to STDOUT. \fBsmem\fP can analyze the output using the \fB\-\-source\fP option. \fBsmemcap\fP is small and does not require Python. .PP To use \fBsmemcap\fP: -.IP 1. 3 -Obtain the smem source at http://selenic.com/repo/smem +.IP 1. +Install package smemcap on target system. .IP 2. -Compile \fIsmemcap.c\fP for your target system. -.IP 3. Run \fBsmemcap\fP on the target system and save the output: .br smemcap > memorycapture.tar -.IP 4. +.IP 3. Copy the output to another machine and run smem on it: .br -smem -S memorycapture.tar +smem \-S memorycapture.tar .SH FILES .I /proc/$pid/cmdline debian/patches/buildsystem.patch0000644000000000000000000000036412157536574014224 0ustar From: Michal Čihař Subject: Add simple buildsystem Forwarded: no --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +all: smemcap + +smemcap: smemcap.c + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $< -o $@ + +clean: + rm -f smemcap debian/copyright0000644000000000000000000000225411314423673011130 0ustar This package was debianized by Michal Čihař on Wed, 23 Dec 2009 15:20:42 +0100. It was downloaded from Upstream Author: Matt Mackall Copyright: Copyright 2008-2009 Matt Mackall License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 or later as published by the Free Software Foundation. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. The Debian packaging is Copyright (C) 2009, Michal Čihař and is licensed under the GPL, see above. debian/control0000644000000000000000000000326212251400571010571 0ustar Source: smem Section: utils Priority: extra Maintainer: Michal Čihař Uploaders: Python Applications Packaging Team Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1~), python (>= 2.6.6-3) Standards-Version: 3.9.5 Vcs-Svn: svn://anonscm.debian.org/python-apps/packages/smem/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-apps/packages/smem/trunk/ Homepage: http://www.selenic.com/smem/ X-Python-Version: >= 2.5 Package: smem Architecture: all Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends} Recommends: python-matplotlib Conflicts: secure-delete (<< 3.1-5) Description: memory reporting tool Tool that can give numerous reports on memory usage on Linux systems. Unlike existing tools, smem can report proportional set size (PSS), which is a more meaningful representation of the amount of memory used by libraries and applications in a virtual memory system. . This package contains main tool which can also process data collected by smemcap. Package: smemcap Architecture: any Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends} Replaces: smem (<<1.3-2) Breaks: smem (<<1.3-2) Description: data collection tool for memory reporting Tool that can give numerous reports on memory usage on Linux systems. Unlike existing tools, smem can report proportional set size (PSS), which is a more meaningful representation of the amount of memory used by libraries and applications in a virtual memory system. . This package contains smemcap utility, which can be used to collect data on resource constrained systems without depending on Python. . The captured data can be processed by smem program. debian/watch0000644000000000000000000000010111314423673010213 0ustar version=3 http://www.selenic.com/smem/download/smem-(.*)\.tar.gz debian/compat0000644000000000000000000000000212157536574010403 0ustar 9 debian/smem.install0000644000000000000000000000001512157540177011524 0ustar smem usr/bin debian/rules0000755000000000000000000000010312157536574010257 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 %: dh $@ --with python2 debian/source/0000755000000000000000000000000012251404600010460 5ustar debian/source/format0000644000000000000000000000001411314423673011700 0ustar 3.0 (quilt) debian/smemcap.manpages0000644000000000000000000000002112157540177012332 0ustar debian/smemcap.8