Skip to content

Instantly share code, notes, and snippets.

@lu-zero
Created January 30, 2020 17:07
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 lu-zero/b52f729dd7e9bde8bcd97c28a236788f to your computer and use it in GitHub Desktop.
Save lu-zero/b52f729dd7e9bde8bcd97c28a236788f to your computer and use it in GitHub Desktop.
#!/bin/sh

MEM_PROF_LIB=/opt/memory_profiler/libmemory_profiler.so

LD_PRELOAD="${MEM_PROF_LIB}:${LD_PRELOAD}" "$@"
$ cargo build --release
$ memprof target/release/rav1e $SAMPLE --tiles $TILES -s $SPEED -o /dev/null
$ memory-profiler-cli server -p 8084 -i 0.0.0.0 memory-profiling_*.dat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment