[Hipblaslt] Buffer c++ timing instrumentations to avoid excess overhead#4884
[Hipblaslt] Buffer c++ timing instrumentations to avoid excess overhead#4884Alex-Vasile wants to merge 1 commit intodevelopfrom
Conversation
Signed-off-by: Alex Vasile <48962821+Alex-Vasile@users.noreply.github.com>
|
Why not just use It's |
perfci run on commit 7a0a87c |
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project status has failed because the head coverage (76.83%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #4884 +/- ##
========================================
Coverage 65.35% 65.35%
========================================
Files 1718 1718
Lines 267217 267217
Branches 37047 37047
========================================
Hits 174637 174637
Misses 77072 77072
Partials 15508 15508
*This pull request uses carry forward flags. Click here to find out more. 🚀 New features to boost your workflow:
|
Thanks for the message. I hadn't tried it since I hadn't heard of it. (I do very little C++ work) I have tried using it by replacing: std::cerr << "TIMING:" << m_category << ":" << duration.count() << std::endl;with std::clog << "TIMING:" << m_category << ':' << duration.count() << '\n';But do not actually see a speedup. Both add the same ~12s overhead. |
That's weird, it might be due to some implementation detail of |
Motivation
Current implementation added substantial overhead to timings because of flushes to stderr on each call.
Technical Details
Buffer calls to 1MB and flush when passing that amount, or when exiting.
Test Plan
Test Result
Submission Checklist