Skip to content

Commit

Permalink
Install the things required to collect flamegraphs when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
onurctirtir committed Sep 10, 2024
1 parent 9b68a2a commit 3f65080
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions benchmark/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ def run_docker(definition, dataset, count, runs, timeout, rebuild,
},
cpuset_cpus=cpu_limit,
mem_limit=mem_limit,
privileged=True, # so that we can run perf inside the container
detach=True)

# set/override container timeout based on competition flag
Expand Down
6 changes: 6 additions & 0 deletions neurips23/streaming/Dockerfile.BasePostgres
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ USER root
# copy the script to start the database that we will use start the database during the tests
COPY neurips23/streaming/start_database.sh /home/app/
RUN chmod +x /home/app/start_database.sh

# install linux-tools-generic into docker so that devs can use perf if they want
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt install -y linux-tools-generic

# clone FlameGraph for the same purpose
RUN git clone https://github.com/brendangregg/FlameGraph

0 comments on commit 3f65080

Please sign in to comment.