summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-01-24 15:40:49 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2017-01-24 15:40:49 +0100
commit903d7b7635847296478404bafe2f74445c6a5379 (patch)
treec088bbd13c7bed880ed6939d2abb739f776fd508
parent07d09c64ca4a7650f56537bbeac65f53e2a52117 (diff)
downloadpsutil-903d7b7635847296478404bafe2f74445c6a5379.tar.gz
update HISTORY / README
-rw-r--r--HISTORY.rst6
-rw-r--r--README.rst2
-rw-r--r--psutil/__init__.py2
3 files changed, 8 insertions, 2 deletions
diff --git a/HISTORY.rst b/HISTORY.rst
index c6db2aa0..2806c2b0 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,10 +1,14 @@
*Bug tracker at https://github.com/giampaolo/psutil/issues*
-5.0.2
+5.1.0
=====
*XXXX-XX-XX*
+**Enhancements**
+
+- 357_: added Process.cpu_num() (what CPU the process is on).
+
**Bug fixes**
- 687_: [Linux] pid_exists() no longer returns True if passed a process thread
diff --git a/README.rst b/README.rst
index 67e5bc92..6d9a1d93 100644
--- a/README.rst
+++ b/README.rst
@@ -249,6 +249,8 @@ Process management
>>> p.cpu_affinity()
[0, 1, 2, 3]
>>> p.cpu_affinity([0]) # set
+ >>> p.cpu_num()
+ 2
>>>
>>> p.memory_info()
pmem(rss=10915840, vms=67608576, shared=3313664, text=2310144, lib=0, data=7262208, dirty=0)
diff --git a/psutil/__init__.py b/psutil/__init__.py
index b24b9822..d0e018e2 100644
--- a/psutil/__init__.py
+++ b/psutil/__init__.py
@@ -189,7 +189,7 @@ __all__ = [
]
__all__.extend(_psplatform.__extra__all__)
__author__ = "Giampaolo Rodola'"
-__version__ = "5.0.2"
+__version__ = "5.1.0"
version_info = tuple([int(num) for num in __version__.split('.')])
AF_LINK = _psplatform.AF_LINK
_TOTAL_PHYMEM = None