Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@driusan
Copy link
Collaborator

@driusan driusan commented Oct 2, 2024

This adds a new Profiler class that can be used for logging performance bottlenecks in LORIS. To use it, add a call to Profiler::checkpoint("message") and if the profiler is enabled in the configuration module (default, disabled) it will print to the error logs a timestamp, how long the request has taken so far, the message, max memory usage, and any new memory usage since the last checkpoint call.

This can be used to debug where requests are slowing down. The checkpoints added in this PR are the places that I used to optimize the dataquery module.

@driusan driusan force-pushed the ProfilerClass branch 2 times, most recently from a36544c to 0481617 Compare October 2, 2024 18:38
This adds a new Profiler class that can be used for logging performance
bottlenecks in LORIS. To use it, add a call to Profiler::checkpoint("message")
and if the profiler is enabled in the configuration module (default, disabled)
it will print to the error logs a timestamp, how long the request has taken
so far, the message, max memory usage, and any new memory usage since the last
checkpoint call.

This can be used to debug where requests are slowing down. The checkpoints added
in this PR are the places that I used to optimize the dataquery module.
@driusan driusan added this to the 27.0.0 milestone Feb 17, 2025
Copy link
Contributor

@GeorgeMurad GeorgeMurad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@driusan driusan merged commit 24623c3 into aces:main Mar 10, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants