memusagestat_2.11.bb: Add memusagestat
authorHolger Hans Peter Freyther <zecke@selfish.org>
Mon, 11 Jan 2010 20:23:41 +0000 (21:23 +0100)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Thu, 14 Jan 2010 17:36:20 +0000 (18:36 +0100)
This is a small tool that can turn the memory trace of glibc
into a nice graph.

recipes/memusagestat/memusagestat_2.11.bb [new file with mode: 0644]

diff --git a/recipes/memusagestat/memusagestat_2.11.bb b/recipes/memusagestat/memusagestat_2.11.bb
new file mode 100644 (file)
index 0000000..56aface
--- /dev/null
@@ -0,0 +1,19 @@
+LICENSE = "GPL"
+DESCRIPTION = "Generate graphic from memory profiling data"
+
+DEPENDS = "gd"
+SRC_URI = "http://www.secretlabs.de/memusagestat.c;name=tarball"
+
+SRC_URI[tarball.md5sum] = "981a7f34d891dfd2e4696354d284a328"
+SRC_URI[tarball.sha256sum] = "b4c0a9353cffa57c5af5fc304b3cc322ca3a0ff78149471f6cf5d5c249054b49"
+
+S = "${WORKDIR}"
+
+do_compile() {
+    ${CC} -o memusagestat memusagestat.c ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -lgd
+}
+
+do_install() {
+    install -d ${D}${bindir}
+    install -m 0755 memusagestat ${D}/${bindir}
+}