A simple sample-based profiler for Linux based on ptrace