[Zrouter-src] ZRouter.org: push to ZRouter profiles/DEBUG_/files/usr/sbin/mem.sh
zrouter-src at zrouter.org
zrouter-src at zrouter.org
Thu Sep 13 23:21:53 UTC 2012
details: http://zrouter.org/hg/zrouter//rev/858e305288aa
changeset: 422:858e305288aa
user: Aleksandr Rybalko <ray at ddteam.net>
date: Fri Sep 14 02:23:45 2012 +0300
description:
Simple mem stat shell script.
diffstat:
profiles/DEBUG_/files/usr/sbin/mem.sh | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r c685b3c5f40b -r 858e305288aa profiles/DEBUG_/files/usr/sbin/mem.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/profiles/DEBUG_/files/usr/sbin/mem.sh Fri Sep 14 02:23:45 2012 +0300
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+out=0;
+
+for sz in `ps -axo rss=` ; do
+ out=$(( ${out} + ${sz} ));
+done
+
+echo "Memory used by userland programs: ${out}"
More information about the Zrouter-src
mailing list