Skip to content

Commit 0c3d9b4

Browse files
committed
Installing a Rust port of FlameGraph as part of image
1 parent 64edef6 commit 0c3d9b4

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

scripts/docker/build/ubuntu24/Dockerfile.prof

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,16 @@ RUN git clone --depth 1 https://github.com/brendangregg/FlameGraph /opt/flamegra
5353

5454
ENV PATH="/opt/flamegraph:${PATH}"
5555

56+
#
57+
# Install Inferno for callgrind → folded conversion
58+
# (Rust port of FlameGraph with broader format support)
59+
#
60+
RUN apt-get update && \
61+
apt-get install -y $APT_OPTS --no-install-recommends \
62+
cargo && \
63+
cargo install inferno --version 0.11.21 --locked --root /usr/local && \
64+
apt-get clean && \
65+
rm -r /var/lib/apt/lists/*
66+
5667
EXPOSE 1812/udp 1813/udp
5768
CMD ["/bin/sh", "-c", "while true; do sleep 60; done"]

scripts/docker/m4/profiling.deb.m4

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,16 @@ RUN git clone --depth 1 https://github.com/brendangregg/FlameGraph /opt/flamegra
4848

4949
ENV PATH="/opt/flamegraph:${PATH}"
5050

51+
#
52+
# Install Inferno for callgrind → folded conversion
53+
# Inferno is a Rust port of FlameGraph with broader format support
54+
#
55+
RUN apt-get update && \
56+
apt-get install -y $APT_OPTS --no-install-recommends \
57+
cargo && \
58+
cargo install inferno --version 0.11.21 --locked --root /usr/local && \
59+
apt-get clean && \
60+
rm -r /var/lib/apt/lists/*
61+
5162
EXPOSE 1812/udp 1813/udp
5263
CMD ["/bin/sh", "-c", "while true; do sleep 60; done"]

0 commit comments

Comments
 (0)