Conversation
|
I would be interested in seeing the impact on performances. Could you please measure it before and after the patch and paste the result? ...also, while we're at it, is it possible to provide also PSS stats? |
|
before (master): after: So slower, but not as slow as on Linux. |
|
Any idea how to determine PSS? |
|
I do not know of a method for calculating PSS on OSX. |
|
Sorry for replying late. I was looking back at this and I wonder how this relates to ...but on the other hand the way you are determining USS (I'm talking about the implementation) is completely different. What's the difference between |
psutil/_psutil_osx_uss.c
Outdated
There was a problem hiding this comment.
- indentation should be 4 spaces
- I don't like this being in a separate file, you can use `psutil/arch/osx/process_info.c
- use
//for all comments (instead of/*)
psutil/_psutil_osx_uss.c
Outdated
There was a problem hiding this comment.
On a second thought I would prefer you define this in psutil/_psutil_osx.c as proc_memory_uss.
From the python file (psutil/_psosx.py) after you call cext.psutil_proc_memory_info you will call cext.proc_memory_uss to get USS stats separately.
|
I found this: |
They are not equal, The primary difference I can tell is
They seem to be calculating some sort of USS/PSS hybrid. |
|
@giampaolo Thanks for the review, I'll update per your style requests and merge into the main file. |
|
@giampaolo Updated per requests, I think I covered everything:
If all is good I'd recommend squashing before merging if that's not in your standard workflow. |
|
What do you mean by that?
|
|
@giampaolo I pushed an update that covered your code review changes, just wanted to list out what I changed and make sure you noticed. |
|
Merged. Thanks a lot for this (I'll also update CREDITS). |
This made me think of #289. |
This adds a USS (unique set size) measurement to
memory_info_exon OSX. It is based on the implementation in Firefox's memory measurement subsystem.