add a script to get a flamegraph of collab in production (#8972)

Add `./script/collab-flamegraph` so you can profile in production (or
staging)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-03-06 16:39:48 -07:00 committed by GitHub
parent 675ae24964
commit ca37d39109
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 34 additions and 1 deletions

View file

@ -22,7 +22,8 @@ RUN --mount=type=cache,target=./target \
# Copy collab server binary to the runtime image
FROM debian:bookworm-slim as runtime
RUN apt-get update; \
apt-get install -y --no-install-recommends libcurl4-openssl-dev ca-certificates linux-perf
apt-get install -y --no-install-recommends libcurl4-openssl-dev ca-certificates \
linux-perf binutils
WORKDIR app
COPY --from=builder /app/collab /app/collab
COPY --from=builder /app/crates/collab/migrations /app/migrations