Skip to content

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

Merged
incrypto32 merged 1 commit intomasterfrom
krishna/profiling-docker
Mar 5, 2026
Merged

docker: Add profiling support to graph-node-debug image#6418
incrypto32 merged 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

Copy link
Member Author

Choose a reason for hiding this comment

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

Its already inherited from the graph-node base stage

@incrypto32 incrypto32 force-pushed the krishna/profiling-docker branch from c41e490 to e8bfe78 Compare March 5, 2026 05:08
@incrypto32 incrypto32 merged commit 5492235 into master Mar 5, 2026
12 checks passed
@incrypto32 incrypto32 deleted the krishna/profiling-docker branch March 5, 2026 05:14
incrypto32 added a commit that referenced this pull request Mar 5, 2026
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.
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