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 function to convert page count to bytes on Linux & Android #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

biryukovmaxim
Copy link

This commit adds a function that determines the page size on Linux and Android systems and uses this to convert virtual memory size and resident set size from pages to bytes. This was necessary because previously the reported values were in pages, which could lead to confusion or incorrect information when being used elsewhere in the code. By doing the conversion in this function, we ensure that the values are always correctly represented in bytes.

This commit adds a function that determines the page size on Linux and Android systems and uses this to convert virtual memory size and resident set size from pages to bytes. This was necessary because previously the reported values were in pages, which could lead to confusion or incorrect information when being used elsewhere in the code. By doing the conversion in this function, we ensure that the values are always correctly represented in bytes.
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.

1 participant