From a34d8fdc3e4ef507949335072bf3641f900afdad Mon Sep 17 00:00:00 2001 From: =?utf8?q?K=C3=A9vin=20THIERRY?= Date: Tue, 29 Jul 2014 10:29:22 +0200 Subject: [PATCH] meta-tizen: Add tool to report memory usage MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Patrick Ohly --- .../images/tizen-common-core-image-crosswalk-dev.bb | 3 ++- .../images/tizen-common-core-image-minimal-dev.bb | 3 ++- meta-tizen/recipes-tizen/ps-mem/ps-mem_git.bb | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 meta-tizen/recipes-tizen/ps-mem/ps-mem_git.bb diff --git a/meta-tizen/recipes-image/images/tizen-common-core-image-crosswalk-dev.bb b/meta-tizen/recipes-image/images/tizen-common-core-image-crosswalk-dev.bb index 9f02c31..43f6af0 100644 --- a/meta-tizen/recipes-image/images/tizen-common-core-image-crosswalk-dev.bb +++ b/meta-tizen/recipes-image/images/tizen-common-core-image-crosswalk-dev.bb @@ -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 diff --git a/meta-tizen/recipes-image/images/tizen-common-core-image-minimal-dev.bb b/meta-tizen/recipes-image/images/tizen-common-core-image-minimal-dev.bb index 7e94fa8..38e11ee 100644 --- a/meta-tizen/recipes-image/images/tizen-common-core-image-minimal-dev.bb +++ b/meta-tizen/recipes-image/images/tizen-common-core-image-minimal-dev.bb @@ -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 index 0000000..dd88932 --- /dev/null +++ b/meta-tizen/recipes-tizen/ps-mem/ps-mem_git.bb @@ -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 -- 2.7.4