node/deps/v8/tools/oprofile/run

15 lines
303 B
Bash

#!/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