summaryrefslogtreecommitdiff
path: root/deps/v8/tools/oprofile/run
blob: 0a92470a01a7445e0a9efa34f86e7d2236b2b532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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