Hi,
Currently, the ContinuousProfiler includes profile processing functionality. We propose extending this capability to the Express middleware by introducing a configuration option that utilizes the processProfile utility function.
Key points:
New Configuration Option:
Introduce a config option in the Express middleware to enable profile processing.
This would leverage the existing processProfile utility function.
Documentation Update:
The current documentation for pull mode with Express middleware is incomplete.
This workaround functions correctly with pull mode.
By implementing this feature, we can enhance the profiling capabilities of the Express middleware, providing more detailed and useful information to users, especially in scenarios involving anonymous functions.
I am more than happy to implement this feature and contribute to the project if needed. Thanks
Hi, Currently, the
ContinuousProfiler
includes profile processing functionality. We propose extending this capability to the Express middleware by introducing a configuration option that utilizes theprocessProfile
utility function.Key points:
New Configuration Option:
processProfile
utility function.Documentation Update:
Improved Function Naming:
Real-world Use Case:
Our team encountered this need and believes it could be generally useful.
As a temporary solution, we patched the middleware to call the
processProfile
utility function:This workaround functions correctly with pull mode.
By implementing this feature, we can enhance the profiling capabilities of the Express middleware, providing more detailed and useful information to users, especially in scenarios involving anonymous functions.
I am more than happy to implement this feature and contribute to the project if needed. Thanks