-
Notifications
You must be signed in to change notification settings - Fork 436
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
Add Memory Statistics and Clean Solitaries in Constraint Graph #1340
Conversation
svf/lib/WPA/Andersen.cpp
Outdated
u32_t vmrss = 0; | ||
u32_t vmsize = 0; | ||
SVFUtil::getMemoryUsageKB(&vmrss, &vmsize); | ||
stat->setMemUsageBefore(vmrss, vmsize); |
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.
move this to PTAState's constructor.
svf/lib/WPA/Andersen.cpp
Outdated
u32_t vmrss = 0; | ||
u32_t vmsize = 0; | ||
SVFUtil::getMemoryUsageKB(&vmrss, &vmsize); | ||
stat->setMemUsageAfter(vmrss, vmsize); |
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.
move to PTAStat::performStat()
PTNumStatMap["MemoryUsageVmrss"] = _vmrssUsageAfter - _vmrssUsageBefore; | ||
PTNumStatMap["MemoryUsageVmsize"] = _vmsizeUsageAfter - _vmsizeUsageBefore; |
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.
move to PTAStat
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1340 +/- ##
==========================================
+ Coverage 65.69% 65.73% +0.03%
==========================================
Files 226 225 -1
Lines 24215 24242 +27
==========================================
+ Hits 15908 15935 +27
Misses 8307 8307
|
As shown in the above graph, in this patch,