Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pprof to the server #3

Merged
merged 3 commits into from
Nov 8, 2024
Merged

Add pprof to the server #3

merged 3 commits into from
Nov 8, 2024

Conversation

kelindar
Copy link
Owner

@kelindar kelindar commented Nov 8, 2024

This pull request includes several changes to improve the rendering of HTML elements and add profiling capabilities to the server. The most important changes include modifying the image class in the HTML template and Go code, and adding pprof handlers for profiling.

Improvements to HTML rendering:

Enhancements to server profiling:

  • render/server.go: Imported the net/http/pprof package to enable profiling.
  • render/server.go: Added multiple pprof handlers to the HTTP server to handle profiling endpoints, including index, cmdline, profile, symbol, trace, and various pprof handlers like allocs, block, goroutine, heap, mutex, and threadcreate. [1] [2]

@kelindar kelindar merged commit f90898b into main Nov 8, 2024
@kelindar kelindar deleted the pprof branch November 8, 2024 14:49
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.

1 participant