Skip to content

docker: Add profiling support to graph-node-debug image#6418

Open
incrypto32 wants to merge 1 commit intomasterfrom
krishna/profiling-docker
Open

docker: Add profiling support to graph-node-debug image#6418
incrypto32 wants to merge 1 commit intomasterfrom
krishna/profiling-docker

Conversation

@incrypto32
Copy link
Member

  • Build with frame pointers for perf stack unwinding
  • Rebase graph-node-debug on slim runtime, add linux-perf
  • Remove unused objcopy debug link dance

Build with frame pointers enabled for all builds. Rebase
graph-node-debug on the slim runtime image instead of the full Rust
build stage, add linux-perf for CPU profiling alongside existing
debug tools. Remove unused objcopy debug link dance from production
build since the .debug file was never copied to the final image.
@incrypto32 incrypto32 force-pushed the krishna/profiling-docker branch from 313da2d to e8bfe78 Compare March 4, 2026 10:22
Copy link
Collaborator

@lutter lutter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

RUN apt-get update \
&& apt-get install -y curl gdb postgresql-client linux-perf procps binutils
COPY docker/Dockerfile /Dockerfile
COPY docker/bin/* /usr/local/bin/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should also copy /etc/image-info to help identify what exact graph-node version is in the image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants