Skip to content
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

Merged
merged 2 commits into from
Jan 20, 2024

Conversation

kisslune
Copy link
Contributor

3

As shown in the above graph, in this patch,

  1. memory statistics of WPA are now printed;
  2. non-pointer nodes which are not connected by any edge are removed from constraint graph in the preprocessing stage, which reduced time and memory consumption.

Comment on lines 80 to 83
u32_t vmrss = 0;
u32_t vmsize = 0;
SVFUtil::getMemoryUsageKB(&vmrss, &vmsize);
stat->setMemUsageBefore(vmrss, vmsize);
Copy link
Collaborator

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.

Comment on lines 104 to 107
u32_t vmrss = 0;
u32_t vmsize = 0;
SVFUtil::getMemoryUsageKB(&vmrss, &vmsize);
stat->setMemUsageAfter(vmrss, vmsize);
Copy link
Collaborator

Choose a reason for hiding this comment

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

move to PTAStat::performStat()

Comment on lines +355 to +356
PTNumStatMap["MemoryUsageVmrss"] = _vmrssUsageAfter - _vmrssUsageBefore;
PTNumStatMap["MemoryUsageVmsize"] = _vmsizeUsageAfter - _vmsizeUsageBefore;
Copy link
Collaborator

Choose a reason for hiding this comment

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

move to PTAStat

Copy link

codecov bot commented Jan 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fd6d70b) 65.69% compared to head (e128d68) 65.73%.
Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            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              
Files Coverage Δ
svf-llvm/tools/AE/ae.cpp 100.00% <100.00%> (ø)
svf/include/Graphs/ConsG.h 79.16% <ø> (ø)
svf/include/Util/PTAStat.h 100.00% <100.00%> (ø)
svf/lib/DDA/DDAStat.cpp 91.12% <ø> (-0.11%) ⬇️
svf/lib/Graphs/ConsG.cpp 65.68% <100.00%> (+1.03%) ⬆️
svf/lib/Util/PTAStat.cpp 100.00% <100.00%> (ø)
svf/lib/WPA/Andersen.cpp 89.07% <100.00%> (ø)
svf/lib/WPA/AndersenStat.cpp 96.96% <100.00%> (+0.03%) ⬆️

@yuleisui yuleisui merged commit d47f548 into SVF-tools:master Jan 20, 2024
5 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