From a1d43c65ccf28597c2fef482dfcd3780fb9b707e Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Mon, 15 Oct 2012 09:10:16 -0400 Subject: documented Statistics interface --- src/lib/Bcfg2/Server/Plugin/helpers.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/lib/Bcfg2/Server/Plugin') 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_ -- cgit v1.2.3-1-g7c22