diff options
| author | Li xin <lixin.fnst@cn.fujitsu.com> | 2014-11-11 16:20:21 +0800 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-11-24 11:58:32 +0100 |
| commit | f5596a2c87a707467d55f219541b2c61958f0183 (patch) | |
| tree | 5a062bf6f1444924b26663f4f6cb0b1b0801a3cb /meta-oe | |
| parent | bd61a50e48e4a4c52114d4874d824af0b3986e0f (diff) | |
| download | meta-openembedded-f5596a2c87a707467d55f219541b2c61958f0183.tar.gz | |
smem: add new recipe
smem is a 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.
Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-support/smem/smem_1.4.bb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/smem/smem_1.4.bb b/meta-oe/recipes-support/smem/smem_1.4.bb new file mode 100644 index 0000000000..8d195d472b --- /dev/null +++ b/meta-oe/recipes-support/smem/smem_1.4.bb | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | SUMMARY = "Report application memory usage in a meaningful way" | ||
| 2 | DESCRIPTION = "smem is a tool that can give numerous reports on memory usage on Linux \ | ||
| 3 | systems. Unlike existing tools, smem can report proportional set size (PSS), \ | ||
| 4 | which is a more meaningful representation of the amount of memory used by \ | ||
| 5 | libraries and applications in a virtual memory system." | ||
| 6 | HOMEPAGE = "http://www.selenic.com/smem/" | ||
| 7 | SECTION = "Applications/System" | ||
| 8 | |||
| 9 | LICENSE = "GPLv2+" | ||
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
| 11 | |||
| 12 | SRC_URI = "http://www.selenic.com/smem/download/${PN}-${PV}.tar.gz" | ||
| 13 | SRC_URI[md5sum] = "fe79435c3930389bfdb560255c802162" | ||
| 14 | SRC_URI[sha256sum] = "2ea9f878f4cf3c276774c3f7e2a41977a1f2d64f98d2dcb6a15f1f3d84df61ec" | ||
| 15 | |||
| 16 | do_compile() { | ||
| 17 | ${CC} ${CFLAGS} ${LDFLAGS} smemcap.c -o smemcap | ||
| 18 | } | ||
| 19 | |||
| 20 | do_install() { | ||
| 21 | install -d ${D}/${bindir}/ | ||
| 22 | install -d ${D}/${mandir}/man8 | ||
| 23 | install -m 0755 ${S}/smem ${D}${bindir}/ | ||
| 24 | install -m 0755 ${S}/smemcap ${D}${bindir}/ | ||
| 25 | install -m 0644 ${S}/smem.8 ${D}/${mandir}/man8/ | ||
| 26 | } | ||
