2011-12-01 02:44:13 +01:00
|
|
|
#! /bin/sh
|
2011-12-14 08:40:48 +01:00
|
|
|
# Use this script to track performance while running MegaGlest
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Written by Mark Vejvoda <mark_vejvoda@hotmail.com>
|
|
|
|
# Copyright (c) 2011 Mark Vejvoda under GNU GPL v3.0+
|
2011-12-01 02:44:13 +01:00
|
|
|
|
|
|
|
exec 3>&1
|
|
|
|
|
|
|
|
sudo opcontrol --reset
|
|
|
|
sudo opcontrol --start
|
|
|
|
./megaglest --load-scenario=benchmark
|
|
|
|
sudo opcontrol --shutdown
|
|
|
|
# opreport -lt1
|
|
|
|
opreport --symbols ./megaglest >perf.log
|
|
|
|
gedit perf.log
|