glest-source/scripts/mg_perf.sh
Andy Alt 7c359ca82d
CMakeLists.txt:checking, tuning the build system (#232)
* build.zg.sh scripts deprected

* update for BSD

* removed checking for VLC (not implemented)

* docs updated

* Install.md created.

* scripts moved to scripts/ directory
2018-09-17 17:35:19 -05:00

19 lines
545 B
Bash
Executable File

#!/bin/bash
# Use this script to gather MegaGlest performance stats
# ----------------------------------------------------------------------------
# Written by Mark Vejvoda <mark_vejvoda@hotmail.com>
# Copyright (c) 2012 Mark Vejvoda under GNU GPL v3.0+
echo 'Recording performnce stats...'
echo 'cat /proc/sys/kernel/kptr_restrict'
echo '1'
#echo 'echo 0 > /proc/sys/kernel/kptr_restrict'
echo 'sudo sh -c "echo 0 > /proc/sys/kernel/kptr_restrict"'
echo 'cat /proc/sys/kernel/kptr_restrict'
echo '0'
perf record ./megaglest $@
perf report