#!/bin/bash # # Usage: # ./uftrace.sh set -o nounset set -o pipefail set -o errexit #uftrace() { # ~/src/uftrace-0.8.1/uftrace "$@" #} proc python-demo { uftrace _devbuild/cpython-instrumented/python -h } # https://github.com/namhyung/uftrace/wiki/Tutorial proc hello-demo { cat >_tmp/hello.c << """ #include int main(void) { printf("Hello world\n"); return 0; } """ gcc -o _tmp/hello -pg _tmp/hello.c uftrace _tmp/hello } @Argv