- step 1: get the toolbox and enter it (it's a container):
wget https://raw.githubusercontent.com/mesosphere/docker-containers/master/dcos-debug/toolbox
chmod +x toolbox
./toolbox
- step 2: collect the trace (this example runs for 30s):
perf record -F 99 -p <marathon PID> -g -- sleep 30