[yocto] add a process memory check utility (ps_mem)

Insop Song insop.song at gmail.com
Wed Dec 10 13:33:57 PST 2014


Hi Khem,

I've been using this memory check utility (ps_mem) and wrote a bb file
to include it in our yocto image.

I thought it'd nice to include this in yocto upstream as well.

- It's called ps_mem, "A utility to accurately report the in core
memory usage for a program"
- https://github.com/pixelb

Could you consider to include ps_mem in upstream? and let me know what
and where to put if is okay? I can follow up.


Thank you,

Insop


- this is my bb file as an example

diff --git a/recipes-gs/ps_mem/psmem.bb b/recipes-gs/ps_mem/psmem.bb
new file mode 100644
index 0000000..d408298
--- /dev/null
+++ b/recipes-gs/ps_mem/psmem.bb
@@ -0,0 +1,26 @@
+#
+# ps_mem
+#
+SUMMARY = "A utility to accurately report the in core memory usage
for a program"
+HOMEPAGE = "https://github.com/pixelb/ps_mem"
+LICENSE = "LGPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=c05fdef0c0d05f619748e9bb0fb41b21"
+
+PR = "r0"
+
+SRC_URI = "git://github.com/pixelb/ps_mem.git;branch=master;protocol=git"
+SRCREV = "702b461d16062f14a9f4191bc731adcf48b51489"
+
+S = "${WORKDIR}/git"
+
+do_compile () {
+ echo "No compile needed"
+}
+
+do_install () {
+ install -d ${D}${bindir}
+ install -m 0755 ${S}/ps_mem.py ${D}${bindir}/ps_mem
+}
+
+FILES_${PN} += "/*"
+FILES_${PN}-dbg += "/www/pages/.debug"
-- 
1.7.9.5



More information about the yocto mailing list