sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Sys::ProcTable::Smaps#pss
Proportional set size PSS is the size of private pages added to each shared mapping's size divided by the number of processes that share it. It is meant to provide a better representation of the amount of memory actually used by a process. If a process has 4k of private pages, 4k of shared pages shared with one other process, and 3k of pages shared with two other processes, the PSS is: 4k + (4k / 2) + (3k / 3) = 7k
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/sys-proctable-sys-proctable-1.2.6/lib/linux/sys/proctable/smaps.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Sys--ProcTable--Smaps-pss-for-pr
# Commit to gitgit add app/server/ruby/vendor/sys-proctable-sys-proctable-1.2.6/lib/linux/sys/proctable/smaps.rbgit commit -m "better docs for Sys::ProcTable::Smaps#pss"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Sys--ProcTable--Smaps-pss-for-pr
hub pull-request
# Celebrate!