Permalink
Browse files

MB-100: revise comments in stats module

Change-Id: I5f62ebb3f15dded770bb655864bc641514bcef5a
Reviewed-on: http://review.couchbase.org/22549
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Pavel Paulau <pavel.paulau@gmail.com>
  • Loading branch information...
1 parent 7d4a8f1 commit 71d35cd5ebb60c794a802c681e22a94fa48c3d83 @pavel-paulau pavel-paulau committed Nov 14, 2012
Showing with 5 additions and 7 deletions.
  1. +5 −7 lib/membase/performance/stats.py
@@ -448,9 +448,7 @@ def couchdb_stats(nodes):
pass
def capture_mb_snapshot(self, node):
- """
- Capture membase stats snapshot manually
- """
+ """Capture membase stats snapshot manually"""
log.info("Capturing memcache stats snapshot for {0}".format(node.ip))
stats = {}
@@ -483,7 +481,7 @@ def membase_stats(self, nodes, bucket, frequency, verbose=False):
self._task["timings"] = []
self._task["dispatcher"] = []
d = {}
- # "pname":"x","pid":"y","snapshots":[{"time":time,"value":value}]
+ # "pname": "x", "pid": "y","snapshots": [{"time": time,"value": value}]
for mc in mcs:
d[mc.host] = {"snapshots": [], "timings": [], "dispatcher": []}
@@ -665,11 +663,11 @@ def stop_atop(self,):
shell.execute_command("killall atop")
-# Invokes optional callback when registered levels have been reached
-# during stats sample()'ing.
-#
class CallbackStatsCollector(StatsCollector):
+ """Invokes optional callback when registered levels have been reached
+ during stats sample()'ing."""
+
def __init__(self, verbosity):
# Tuples of level_name, level, callback.
self.level_callbacks = []

0 comments on commit 71d35cd

Please sign in to comment.