Skip to contentSkip to conversation

Add package dstat (python script for system stats/profiling)

PATCH New Thomas De Schampheleire 2 participants 2 messages Feb 7, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add package dstat (python script for system stats/profiling)

---
 package/Config.in       |   1 +
 package/dstat/Config.in |  19 +++++++++++++++++++
 package/dstat/dstat.mk  |  15 +++++++++++++++
 3 files changed, 35 insertions(+), 0 deletions(-)

v2: reduce parameters to GENTARGETS

package/Config.in +1 -0
@@ -19,6 +19,7 @@ endmenu
 menu "Debugging, profiling and benchmark"
 source "package/bonnie/Config.in"
 source "package/dhrystone/Config.in"
+source "package/dstat/Config.in"
 source "package/dmalloc/Config.in"
 source "package/kexec/Config.in"
 source "package/lmbench/Config.in"
package/dstat/Config.in new file +19 -0
new file mode 100644
@@ -0,0 +1,19 @@
+config BR2_PACKAGE_DSTAT
+	bool "dstat"
+	select BR2_PACKAGE_PYTHON
+	help
+	  Dstat, written in Python, is a versatile replacement for vmstat,
+	  iostat, netstat and ifstat. Dstat overcomes some of their limitations
+	  and adds some extra features, more counters and flexibility. Dstat is
+	  handy for monitoring systems during performance tuning tests,
+	  benchmarks or troubleshooting.
+	  Dstat allows you to view all of your system resources in real-time,
+	  you can e.g. compare disk utilization in combination with interrupts
+	  from your IDE controller, or compare the network bandwidth numbers
+	  directly with the disk throughput (in the same interval).
+	
+	  Note that to get proper output, your terminal size should be known by
+	  the termios subsystem. This can be done by running the 'resize'
+	  utility of busybox.
+	
+	  http://dag.wieers.com/home-made/dstat/ 
package/dstat/dstat.mk new file +15 -0
new file mode 100644
@@ -0,0 +1,15 @@
+#############################################################
+#
+# dstat
+#
+#############################################################
+
+DSTAT_VERSION = 0.7.2
+DSTAT_SOURCE = dstat-$(DSTAT_VERSION).tar.bz2
+DSTAT_SITE = http://dag.wieers.com/home-made/dstat
+
+define DSTAT_INSTALL_TARGET_CMDS
+       $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
+endef
+
+$(eval $(call GENTARGETS))
#1 lore raw

PATCH 1/1 Add package dstat (python script for system stats/profiling)

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas De Schampheleire <[email protected]> writes:

Thomas> Signed-off-by: Thomas De Schampheleire <[email protected]> Thomas> ---

 Thomas>  package/Config.in       |   1 +
 Thomas>  package/dstat/Config.in |  19 +++++++++++++++++++
 Thomas>  package/dstat/dstat.mk  |  15 +++++++++++++++

Thomas> 3 files changed, 35 insertions(+), 0 deletions(-)

Thomas> v2: reduce parameters to GENTARGETS

Thomas> diff --git a/package/Config.in b/package/Config.in Thomas> --- a/package/Config.in
Thomas> +++ b/package/Config.in
Thomas> @@ -19,6 +19,7 @@ endmenu

 Thomas>  menu "Debugging, profiling and benchmark"
 Thomas>  source "package/bonnie/Config.in"
 Thomas>  source "package/dhrystone/Config.in"
 Thomas> +source "package/dstat/Config.in"
 Thomas>  source "package/dmalloc/Config.in"
 Thomas>  source "package/kexec/Config.in"
 Thomas>  source "package/lmbench/Config.in"

Thomas> diff --git a/package/dstat/Config.in b/package/dstat/Config.in Thomas> new file mode 100644
Thomas> --- /dev/null
Thomas> +++ b/package/dstat/Config.in
Thomas> @@ -0,0 +1,19 @@
Thomas> +config BR2_PACKAGE_DSTAT
Thomas> + bool "dstat"
Thomas> + select BR2_PACKAGE_PYTHON

Python needs WCHAR, so you need to depend on it as well.

Otherwise it looks good - Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard