Performance Profiling

Performance profiling endpoints are available for debugging and performance analysis.

Status: Enabled

🔍 CPU Profile

CPU profiling shows where the program spends its time while actively consuming CPU cycles.

Download CPU Profile

🧠 Memory Heap

Heap profiling reports memory allocation samples for monitoring current and historical memory usage.

Download Heap Profile

🔄 Goroutines

Stack traces of all current goroutines.

View Goroutines

🔒 Mutex

Stack traces of holders of contended mutexes.

View Mutex Profile

🚫 Block

Stack traces that led to blocking on synchronization primitives.

View Block Profile

📊 All Profiles

Index page with links to all available profiles.

View All Profiles

💡 Usage Tips

  • CPU Profile: Use go tool pprof <profile-url> to analyze CPU usage
  • Memory Heap: Identify memory leaks and high memory usage patterns
  • Goroutines: Debug goroutine leaks and concurrency issues
  • Mutex/Block: Find contention points in your application
# Example: Analyze CPU profile go tool pprof http://localhost:19000/debug/pprof/profile # Example: Analyze heap profile go tool pprof http://localhost:19000/debug/pprof/heap # Example: View goroutines in browser go tool pprof -http=:8080 http://localhost:19000/debug/pprof/goroutine