Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 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 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame^] | 9 | LICENSE = "GPL-2.0-or-later" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 11 | |
| 12 | HG_CHANGESET = "98273ce331bb" |
| 13 | SRC_URI = "https://selenic.com/repo/${BPN}/archive/${HG_CHANGESET}.tar.bz2;downloadfilename=${BP}.tar.bz2 \ |
| 14 | file://0001-smem-fix-support-for-source-option-python3.patch" |
| 15 | SRC_URI[md5sum] = "51c3989779360f42b42ef46b2831be3a" |
| 16 | SRC_URI[sha256sum] = "161131c686a6d9962a0e96912526dd46308e022d62e3f8acaed5a56fda8e08ce" |
| 17 | |
| 18 | UPSTREAM_CHECK_URI = "https://selenic.com/repo/smem/tags" |
| 19 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)" |
| 20 | |
| 21 | S = "${WORKDIR}/${BPN}-${HG_CHANGESET}" |
| 22 | |
| 23 | do_compile() { |
| 24 | ${CC} ${CFLAGS} ${LDFLAGS} smemcap.c -o smemcap |
| 25 | } |
| 26 | |
| 27 | do_install() { |
| 28 | install -d ${D}/${bindir}/ |
| 29 | install -d ${D}/${mandir}/man8 |
| 30 | install -m 0755 ${S}/smem ${D}${bindir}/ |
| 31 | sed -i -e '1s,#!.*python.*,#!${USRBINPATH}/env python3,' ${D}${bindir}/smem |
| 32 | install -m 0755 ${S}/smemcap ${D}${bindir}/ |
| 33 | install -m 0644 ${S}/smem.8 ${D}/${mandir}/man8/ |
| 34 | } |
| 35 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 36 | RDEPENDS:${PN} = "python3-core python3-compression" |
| 37 | RRECOMMENDS:${PN} = "python3-matplotlib python3-numpy" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 38 | |
| 39 | PACKAGE_BEFORE_PN = "smemcap" |
| 40 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 41 | FILES:smemcap = "${bindir}/smemcap" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 42 | |
| 43 | BBCLASSEXTEND = "native" |