Add performance monitoring (CPU and memory usage) functionality to Monitor#203
Merged
zhangt2333 merged 5 commits intopascal-lab:masterfrom Dec 5, 2025
Merged
Add performance monitoring (CPU and memory usage) functionality to Monitor#203zhangt2333 merged 5 commits intopascal-lab:masterfrom
zhangt2333 merged 5 commits intopascal-lab:masterfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #203 +/- ##
============================================
- Coverage 75.85% 75.69% -0.17%
- Complexity 4659 4670 +11
============================================
Files 481 482 +1
Lines 16060 16150 +90
Branches 2198 2203 +5
============================================
+ Hits 12182 12224 +42
- Misses 3014 3059 +45
- Partials 864 867 +3
🚀 New features to boost your workflow:
|
jjppp
approved these changes
Sep 10, 2025
9e382ff to
8f5762c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In the team meeting about #178, we revisited the user requirements, and we decided to create a lightweight performance monitoring solution focused on internal execution phases.
I directly added memory and CPU usage statistics functionality to the
Timerutility class that was originally used for timing.Although this extends the functionality beyond what the
Timername suggests, since the code modifications are minimal, I'm still hesitating whether we should rename it (if we were to rename it, we might need to keep the Timer class and add a new class to maintain backward compatibility so that other branches usingTimerwouldn't face breaking changes).Below are the changes to the logs:
After the team meeting, I implemented these in
Monitorand keepTimerfor compatibility.