summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugin
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-10-15 09:10:16 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-10-15 09:10:21 -0400
commita1d43c65ccf28597c2fef482dfcd3780fb9b707e (patch)
tree147a96b51d7930e3e7eeecaf99ba0c97ee761af3 /src/lib/Bcfg2/Server/Plugin
parent69faac9ae1d4498b4791af40a8e6bb877b82da77 (diff)
downloadbcfg2-a1d43c65ccf28597c2fef482dfcd3780fb9b707e.tar.gz
bcfg2-a1d43c65ccf28597c2fef482dfcd3780fb9b707e.tar.bz2
bcfg2-a1d43c65ccf28597c2fef482dfcd3780fb9b707e.zip
documented Statistics interface
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugin')
-rw-r--r--src/lib/Bcfg2/Server/Plugin/helpers.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Server/Plugin/helpers.py b/src/lib/Bcfg2/Server/Plugin/helpers.py
index 5bc79a29a..131b572a4 100644
--- a/src/lib/Bcfg2/Server/Plugin/helpers.py
+++ b/src/lib/Bcfg2/Server/Plugin/helpers.py
@@ -81,13 +81,15 @@ def bind_info(entry, metadata, infoxml=None, default=DEFAULT_FILE_METADATA):
class track_statistics(object): # pylint: disable=C0103
""" Decorator that tracks execution time for the given
- :class:`Plugin` method for reporting via ``bcfg2-admin perf`` """
+ :class:`Plugin` method with :mod:`Bcfg2.Statistics` for reporting
+ via ``bcfg2-admin perf`` """
def __init__(self, name=None):
"""
:param name: The name under which statistics for this function
- will be tracked. By default the name of the
- function will be used.
+ will be tracked. By default, the name will be
+ the name of the function concatenated with the
+ name of the class the function is a member of.
:type name: string
"""
# if this is None, it will be set later during __call_