message: add instructions for profiling
diff: @@ -36,8 +36,13 @@ stdenv.mkDerivation rec {
  # This is to profile memory usage in the aggregator. See:
  # https://stackoverflow.com/questions/38254937/how-do-i-debug-a-memory-issue-in-rust
  #
  + # First start the aggregator with the tcmalloc allocator:
  + #
  # LD_PRELOAD="$LIBTCMALLOC_PATH" HEAPPROFILE=./profile ./target/debug/aggregator -c configs/dev-aggregator.toml
  - # pprof --gv ./path/to/exe /tmp/profile/profile.0100.heap
  + #
  + # Then generate SVGs out of the heap profiles generated by gperftools:
  + #
  + # pprof --svg ./target/debug/aggregator ./profile.0100.heap profile.0100.heap.svg
  '';
  }
  