Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
9
tools/python/maps_generator/utils/system.py
Normal file
9
tools/python/maps_generator/utils/system.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def total_virtual_memory():
|
||||
if sys.platform.startswith("linux"):
|
||||
return os.sysconf("SC_PAGE_SIZE") * os.sysconf("SC_PHYS_PAGES")
|
||||
else:
|
||||
return 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue