meta-tizen: Add tool to report memory usage
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Tue, 29 Jul 2014 08:29:22 +0000 (10:29 +0200)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 17:21:37 +0000 (09:21 -0800)
This tool accurately report the core memory usage of programs.

Add recipe for the tool ps-mem. Also add this tool in the dev images:
* tizen-common-core-image-minimal-dev
* tizen-common-core-image-crosswalk-dev

Sources of the tool ps-mem: https://github.com/eurogiciel-oss/ps_mem
which is a fork of https://github.com/pixelb/ps_mem

Change-Id: I5f9240d74136f8231e465ddab28d5c86c7334a9b
(From meta-tizen rev: 515509861c8cc7e7cc753aff295cae7ff0d1ec7d)

Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-tizen/recipes-image/images/tizen-common-core-image-crosswalk-dev.bb
meta-tizen/recipes-image/images/tizen-common-core-image-minimal-dev.bb
meta-tizen/recipes-tizen/ps-mem/ps-mem_git.bb [new file with mode: 0644]

index 9f02c31..43f6af0 100644 (file)
@@ -15,4 +15,5 @@ CORE_IMAGE_EXTRA_INSTALL += "libcap"
 CORE_IMAGE_EXTRA_INSTALL += "sudo"
 CORE_IMAGE_EXTRA_INSTALL += "connman-client"
 CORE_IMAGE_EXTRA_INSTALL += "git"
-CORE_IMAGE_EXTRA_INSTALL += "python-json"
\ No newline at end of file
+CORE_IMAGE_EXTRA_INSTALL += "python-json"
+CORE_IMAGE_EXTRA_INSTALL += "ps-mem"
\ No newline at end of file
index 7e94fa8..38e11ee 100644 (file)
@@ -13,4 +13,5 @@ CORE_IMAGE_EXTRA_INSTALL += "screen"
 CORE_IMAGE_EXTRA_INSTALL += "ldd"
 CORE_IMAGE_EXTRA_INSTALL += "libcap"
 CORE_IMAGE_EXTRA_INSTALL += "sudo"
-CORE_IMAGE_EXTRA_INSTALL += "connman-client"
\ No newline at end of file
+CORE_IMAGE_EXTRA_INSTALL += "connman-client"
+CORE_IMAGE_EXTRA_INSTALL += "ps-mem"
\ No newline at end of file
diff --git a/meta-tizen/recipes-tizen/ps-mem/ps-mem_git.bb b/meta-tizen/recipes-tizen/ps-mem/ps-mem_git.bb
new file mode 100644 (file)
index 0000000..dd88932
--- /dev/null
@@ -0,0 +1,19 @@
+DESCRIPTION = "An utility to accurately report the core memory usage of programs"
+HOMEPAGE = "https://github.com/eurogiciel-oss/ps_mem"
+SECTION = "System/System Info"
+LICENSE = "LGPL-2.1"
+SRC_URI = "git://github.com/eurogiciel-oss/ps_mem.git;tag=2ea36ccbad134cccc9ab1ada6aefcaec0f948d94;nobranch=1"
+
+S = "${WORKDIR}/git"
+PRIORITY = "10"
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780"
+
+DEPENDS = "python"
+
+do_install() {
+    install -D -m 755 ${S}/ps_mem.py ${D}${prefix}/bin/ps_mem
+}
+
+PACKAGES = "${PN}"
+
+FILES_${PN} = "${prefix}/bin/ps_mem"
\ No newline at end of file