Closed zhuliquan closed 3 weeks ago
I think it would be good to disable the HTTP route if profiling isn't enabled, or return a more helpful error there. Also adding it as an option to the Dockerfile makes sense, although we probably wouldn't want it enabled by default since that would hurt compatibility and perf.
Sometimes, we need to analyze the memory usage of workers or controllers, and
pprof
is a very useful tool for this. I believe it should be included as a default feature rather than an optional compile-time setting. Additionally, it doesn't make much sense to expose an HTTP route if it can't be utilized effectively (i.g: #764 ).