|
|
|
@ -14,9 +14,9 @@ index 3d683c1ec5c6..0706fbc3debd 100755
@@ -14,9 +14,9 @@ index 3d683c1ec5c6..0706fbc3debd 100755
|
|
|
|
|
--- a/procfs/procfs.py |
|
|
|
|
+++ b/procfs/procfs.py |
|
|
|
|
@@ -412,20 +412,20 @@ class pidstats: |
|
|
|
|
return key in self.processes |
|
|
|
|
|
|
|
|
|
def reload(self): |
|
|
|
|
return key in self.processes |
|
|
|
|
|
|
|
|
|
def reload(self): |
|
|
|
|
- """ |
|
|
|
|
- This operation will trow away the current dictionary contents, if any, and |
|
|
|
|
- read all the pid files from /proc/, instantiating a 'process' instance for |
|
|
|
@ -25,25 +25,26 @@ index 3d683c1ec5c6..0706fbc3debd 100755
@@ -25,25 +25,26 @@ index 3d683c1ec5c6..0706fbc3debd 100755
|
|
|
|
|
+ This operation will throw away the current dictionary contents, if any, and |
|
|
|
|
+ read all the pid files from /proc/, instantiating a 'process' instance for |
|
|
|
|
+ each of them. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- This is a high overhead operation, and should be avoided if the perf python |
|
|
|
|
- binding can be used to detect when new threads appear and existing ones |
|
|
|
|
- terminate. |
|
|
|
|
+ This is a high overhead operation, and should be avoided if the perf python |
|
|
|
|
+ binding can be used to detect when new threads appear and existing ones |
|
|
|
|
+ terminate. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- In RHEL it is found in the python-perf rpm package. |
|
|
|
|
+ In RHEL it is found in the python-perf rpm package. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- More information about the perf facilities can be found in the 'perf_event_open' |
|
|
|
|
- man page. |
|
|
|
|
- """ |
|
|
|
|
+ More information about the perf facilities can be found in the 'perf_event_open' |
|
|
|
|
+ man page. |
|
|
|
|
+ """ |
|
|
|
|
del self.processes |
|
|
|
|
self.processes = {} |
|
|
|
|
pids = os.listdir(self.basedir) |
|
|
|
|
-- |
|
|
|
|
del self.processes |
|
|
|
|
self.processes = {} |
|
|
|
|
pids = os.listdir(self.basedir) |
|
|
|
|
-- |
|
|
|
|
2.4.3 |
|
|
|
|
|
|
|
|
|