File: mg_perf.sh

package info (click to toggle)
megaglest 3.9.1-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 18,172 kB
  • ctags: 26,052
  • sloc: cpp: 140,512; ansic: 66,187; python: 3,761; sh: 2,986; perl: 1,899; php: 1,247; objc: 1,111; makefile: 259; sql: 139
file content (18 lines) | stat: -rwxr-xr-x 545 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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