1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/ext/v8/upstream/2.1.10/tools/oprofile/run
2010-05-06 22:12:33 -05:00

14 lines
303 B
Bash
Executable file

#!/bin/sh
# Source common stuff.
. `cd $(dirname "$0");pwd`/common
# Reset oprofile samples.
sudo_opcontrol --reset
# Run the executable to profile with the correct arguments.
"$shell_exec" --oprofile "$@"
# Flush oprofile data including the generated code into ELF binaries.
sudo_opcontrol --dump