-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1122 elementstats is leaking #1137
Conversation
af9552d
to
e2f04a8
Compare
Codecov Report
@@ Coverage Diff @@
## develop #1137 +/- ##
===========================================
+ Coverage 79.45% 79.54% +0.09%
===========================================
Files 718 719 +1
Lines 27241 27325 +84
===========================================
+ Hits 21643 21735 +92
+ Misses 5598 5590 -8
|
std::unordered_map<PhaseType, std::vector<TimeType>> subphase_timings_ = {}; | ||
std::unordered_map<PhaseType, std::vector<CommMapType>> subphase_comm_ = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might not make much sense (performance/memory overhead?), but if we change this to unordered_map<PhaseType, unordered_map<SubphaseType, ...>>
we might simplify code by getting rid of all resize()
s and at()
s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks good to me. Your choice whether to address the mismatch I noted.
The failure of |
Don't want to say yes or now, but given that it failed only on one build it might be just flaky :'- ( |
It definitely looks like a legitimate failure, but I'm not sure yet if it's related to my changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
16b300d
to
fd5479f
Compare
The vectors holding stats in ElementStats grow without bound. This PR erases stats data for phases older than the lookback.
Fixes #1122