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
2 changed files with 34 additions and 1 deletions
+2 -1
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