dice icon indicating copy to clipboard operation
dice copied to clipboard

[feature request] Introducing debug APIs

Open Avish34 opened this issue 9 months ago • 3 comments

Hi @arpitbbhayani @JyotinderSingh ,

I have a suggestion to improve the user's ability to debug issues while using this engine. Go offers a powerful tool called pprof, which can visualize various segments such as heap, goroutines, mutexes, and more. This tool is invaluable for analysing performance, understanding scalability, and diagnosing issues effectively.

Pros: Integrating pprof into the codebase would provide significant benefits. It allows developers to pinpoint performance bottlenecks and resource leaks efficiently, ultimately improving the system's reliability and maintainability. Additionally, its visualisation capabilities make complex data easier to interpret, enabling faster debugging and optimisation.

Tool: https://pkg.go.dev/net/http/pprof

I would like to implement this feature if you agree there is a need for it. Please let me know your thoughts.

Avish34 avatar Mar 26 '25 19:03 Avish34

Great suggestion @Avish34, agreed should explore doing this. Can help in low level optimisations, like the inlining optimisation (discussed yesterday), Good read: https://www.uber.com/en-IN/blog/automating-efficiency-of-go-programs-with-pgo/

dograprabhav avatar Mar 28 '25 05:03 dograprabhav

Thanks @dograprabhav , that's a good read btw.

Avish34 avatar Mar 31 '25 19:03 Avish34