[feature request] Introducing debug APIs
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.
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/
Thanks @dograprabhav , that's a good read btw.