Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@spacejam
Last active October 6, 2015 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spacejam/fcba2b7d6bc0ca5cabe5 to your computer and use it in GitHub Desktop.
Save spacejam/fcba2b7d6bc0ca5cabe5 to your computer and use it in GitHub Desktop.
  • 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
  • step 3: send the trace to us (the host machine root is accessible at /media/root from inside the toolbox)
# this puts perf.data into /tmp/perf.data on the host machine
cp perf.data /media/root/tmp/perf.data
<exit toolbox>
<email us the perf.data file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment