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

get_memory_info() doesnt exist in mac os x 10.6 #138

Closed
giampaolo opened this issue May 23, 2014 · 1 comment
Closed

get_memory_info() doesnt exist in mac os x 10.6 #138

giampaolo opened this issue May 23, 2014 · 1 comment

Comments

@giampaolo
Copy link
Owner

From [email protected] on December 02, 2010 01:19:28

What steps will reproduce the problem?  
1. import psutil
2. psutil.get_memory_info() 

What is the expected output?  


What do you see instead?  
memory info
psutil.get_memory_info()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'get_memory_info' 

What version of psutil are you using? What Python version?  
0.2.0 , python 2.6 and 2.7 

On what operating system? Is it 32bit or 64bit version?  
32

Original issue: http://code.google.com/p/psutil/issues/detail?id=138

@giampaolo
Copy link
Owner Author

From [email protected] on December 01, 2010 16:33:39

get_memory_info() is a per-process function, not a module-wide system function: 

    >>> import psutil, os
    >>> p = psutil.Process(os.getpid())
    >>> p.get_memory_info()
    meminfo(rss=3796992, vms=618160128)

Memory information for the system is retrieved with module functions like 
avail_phymem()/avail_virtmem(), and used_phymem()/used_virtmem()

Status: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant