Metadata-Version: 1.1
Name: bench
Version: 1.1
Summary: Benchmark resources usage
Home-page: http://zhanxw.com/
Author: Xiaowei Zhan
Author-email: zhanxw@gmail.com
License: UNKNOWN
Download-URL: http://zhanxw.com/
Description: Monitor Process Resources Usage
        -------------------------------------
        
        Bench is able to monitor:
         - CPU time (user time, sys time, real time)
         - Memory usage (vms usage, rss usage)
         - Output to TSV(tab-delimited files)
        
        Examples
        --------
        
        - Example 1: simple command
        
        ::
            
            > python ../monitor.py sleep 2
            
            PID	Prog	UsrTime	SysTime	RealTime	MaxVms	MaxRss	AvgVms	AvgRss	Path	Command
            14264	python	0.0	0.0	NA	NA	6728	NA	NA	/home/zhanxw/mycode/bench/bench	"python ../monitor.py sleep 2"
        
        - Example 2: complex shell commands
        
        ::
            
            > python ../monitor.py -i 0.1 'sleep 2 & sleep 4 & seq 1000000 >/dev/null & wait'
            
            PID	Prog	UsrTime	SysTime	RealTime	MaxVms	MaxRss	AvgVms	AvgRss	Path	Command
            13849	seq	0.48	0	0.4	7356416	634880	7356416.0	634880.0	/home/zhanxw/mycode/bench/bench	"seq 1000000"
            13845	python	0.54	0.0	NA	NA	6728	NA	NA	/home/zhanxw/mycode/bench/bench	"python ../monitor.py -i 0.1 sleep 2 & sleep 4 & seq 1000000 >/dev/null & wait"
            13847	sleep	0	0	1.9	7335936	368640	7335936.0	368640.0	/home/zhanxw/mycode/bench/bench	"sleep 2"
        
        
        NOTE
        ----
        
         Shell (/bin/sh) are used to execute commands. It's a convenient feature with some shell exploit hazard.
         
         This version requires psutil.
        
Keywords: benchmark,process,monitor
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: System :: Monitoring
Requires: psutil
