Skip to content

Instantly share code, notes, and snippets.

@mposa
Last active July 13, 2020 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mposa/99e17f7b043ad737cf429c6801311da2 to your computer and use it in GitHub Desktop.
Save mposa/99e17f7b043ad737cf429c6801311da2 to your computer and use it in GitHub Desktop.
On branch https://github.com/DAIRLab/dairlib/tree/trajopt-speed-hacks
valgrind --tool=callgrind --dump-instr=yes --simulate-cache=yes --collect-jumps=yes ./bazel-bin/examples/Cassie/run_dircon_squatting --max_iter=1
kcachegrind <output file>
@EricCousineau-TRI
Copy link

Here are my results; I dunno how to use callgrind_annotate, so just took a snapshot:

git clone https://github.com/DAIRLab/dairlib -b trajopt-speed-hacks
cd dairlib/
git remote rename origin upstream
git config remote.upstream.pushurl no_push
git log -n 1 --oneline --no-decorate
# a0621b5 Hack to use a single iteration only
bazel build //examples/Cassie:run_dircon_squatting
valgrind \
    --tool=callgrind \
    --dump-instr=yes --simulate-cache=yes --collect-jumps=yes \
    ./bazel-bin/examples/Cassie/run_dircon_squatting --max_iter=1
kcachegrind

image

@mposa
Copy link
Author

mposa commented May 23, 2020

Screenshot from 2020-05-23 16-17-29

@EricCousineau-TRI
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment