|
|
9faa00 |
From f1c8bf461da1344ae48f456a129502f276f5fc14 Mon Sep 17 00:00:00 2001
|
|
|
9faa00 |
From: Jiri Kastner <jkastner@redhat.com>
|
|
|
9faa00 |
Date: Fri, 9 Oct 2015 13:50:09 +0200
|
|
|
9faa00 |
Subject: [PATCH] pidstats: fix documentation indentation
|
|
|
9faa00 |
|
|
|
9faa00 |
Signed-off-by: Jiri Kastner <jkastner@redhat.com>
|
|
|
9faa00 |
Signed-off-by: John Kacur <jkacur at redhat.com>
|
|
|
9faa00 |
---
|
|
|
9faa00 |
procfs/procfs.py | 22 +++++++++++-----------
|
|
|
9faa00 |
1 file changed, 11 insertions(+), 11 deletions(-)
|
|
|
9faa00 |
|
|
|
9faa00 |
diff --git a/procfs/procfs.py b/procfs/procfs.py
|
|
|
9faa00 |
index 3d683c1ec5c6..0706fbc3debd 100755
|
|
|
9faa00 |
--- a/procfs/procfs.py
|
|
|
9faa00 |
+++ b/procfs/procfs.py
|
|
|
9faa00 |
@@ -412,20 +412,20 @@ class pidstats:
|
|
|
9faa00 |
return key in self.processes
|
|
|
9faa00 |
|
|
|
9faa00 |
def reload(self):
|
|
|
9faa00 |
- """
|
|
|
9faa00 |
- This operation will trow away the current dictionary contents, if any, and
|
|
|
9faa00 |
- read all the pid files from /proc/, instantiating a 'process' instance for
|
|
|
9faa00 |
- each of them.
|
|
|
9faa00 |
+ """
|
|
|
9faa00 |
+ This operation will throw away the current dictionary contents, if any, and
|
|
|
9faa00 |
+ read all the pid files from /proc/, instantiating a 'process' instance for
|
|
|
9faa00 |
+ each of them.
|
|
|
9faa00 |
|
|
|
9faa00 |
- This is a high overhead operation, and should be avoided if the perf python
|
|
|
9faa00 |
- binding can be used to detect when new threads appear and existing ones
|
|
|
9faa00 |
- terminate.
|
|
|
9faa00 |
+ This is a high overhead operation, and should be avoided if the perf python
|
|
|
9faa00 |
+ binding can be used to detect when new threads appear and existing ones
|
|
|
9faa00 |
+ terminate.
|
|
|
9faa00 |
|
|
|
9faa00 |
- In RHEL it is found in the python-perf rpm package.
|
|
|
9faa00 |
+ In RHEL it is found in the python-perf rpm package.
|
|
|
9faa00 |
|
|
|
9faa00 |
- More information about the perf facilities can be found in the 'perf_event_open'
|
|
|
9faa00 |
- man page.
|
|
|
9faa00 |
- """
|
|
|
9faa00 |
+ More information about the perf facilities can be found in the 'perf_event_open'
|
|
|
9faa00 |
+ man page.
|
|
|
9faa00 |
+ """
|
|
|
9faa00 |
del self.processes
|
|
|
9faa00 |
self.processes = {}
|
|
|
9faa00 |
pids = os.listdir(self.basedir)
|
|
|
9faa00 |
--
|
|
|
9faa00 |
2.4.3
|
|
|
9faa00 |
|