| 
    LSST Applications
    22.0.1,22.0.1+01bcf6a671,22.0.1+046ee49490,22.0.1+05c7de27da,22.0.1+0c6914dbf6,22.0.1+1220d50b50,22.0.1+12fd109e95,22.0.1+1a1dd69893,22.0.1+1c910dc348,22.0.1+1ef34551f5,22.0.1+30170c3d08,22.0.1+39153823fd,22.0.1+611137eacc,22.0.1+771eb1e3e8,22.0.1+94e66cc9ed,22.0.1+9a075d06e2,22.0.1+a5ff6e246e,22.0.1+a7db719c1a,22.0.1+ba0d97e778,22.0.1+bfe1ee9056,22.0.1+c4e1e0358a,22.0.1+cc34b8281e,22.0.1+d640e2c0fa,22.0.1+d72a2e677a,22.0.1+d9a6b571bd,22.0.1+e485e9761b,22.0.1+ebe8d3385e
    
   LSST Data Management Base Package 
   | 
 
Functions | |
| def | logPairs (obj, pairs, logLevel=Log.DEBUG) | 
| def | logInfo (obj, prefix, logLevel=Log.DEBUG) | 
| def | timeMethod (func) | 
| def lsst.pipe.base.timer.logInfo | ( | obj, | |
| prefix, | |||
logLevel = Log.DEBUG  | 
        |||
| ) | 
Log timer information to ``obj.metadata`` and ``obj.log``.
Parameters
----------
obj : `lsst.pipe.base.Task`-type
    A `~lsst.pipe.base.Task` or any other object with these two attributes:
    - ``metadata`` an instance of `lsst.daf.base.PropertyList`` (or other
      object with ``add(name, value)`` method).
    - ``log`` an instance of `lsst.log.Log`.
prefix
    Name prefix, the resulting entries are ``CpuTime``, etc.. For example
    timeMethod uses ``prefix = Start`` when the method begins and
    ``prefix = End`` when the method ends.
logLevel : optional
    Log level (an `lsst.log` level constant, such as `lsst.log.Log.DEBUG`).
Notes
-----
Logged items include:
- ``Utc``: UTC date in ISO format (only in metadata since log entries have
  timestamps).
- ``CpuTime``: System + User CPU time (seconds). This should only be used
    in differential measurements; the time reference point is undefined.
- ``MaxRss``: maximum resident set size.
All logged resource information is only for the current process; child
processes are excluded.
 
Definition at line 63 of file timer.py.
| def lsst.pipe.base.timer.logPairs | ( | obj, | |
| pairs, | |||
logLevel = Log.DEBUG  | 
        |||
| ) | 
Log ``(name, value)`` pairs to ``obj.metadata`` and ``obj.log``
Parameters
----------
obj : `lsst.pipe.base.Task`-type
    A `~lsst.pipe.base.Task` or any other object with these two attributes:
    - ``metadata`` an instance of `lsst.daf.base.PropertyList`` (or other
      object with ``add(name, value)`` method).
    - ``log`` an instance of `lsst.log.Log`.
pairs : sequence
    A sequence of ``(name, value)`` pairs, with value typically numeric.
logLevel : optional
    Log level (an `lsst.log` level constant, such as `lsst.log.Log.DEBUG`).
 
Definition at line 34 of file timer.py.
| def lsst.pipe.base.timer.timeMethod | ( | func | ) | 
Decorator to measure duration of a task method.
Parameters
----------
func
    The method to wrap.
Notes
-----
Writes various measures of time and possibly memory usage to the task's
metadata; all items are prefixed with the function name.
.. warning::
   This decorator only works with instance methods of Task, or any class
   with these attributes:
   - ``metadata``: an instance of `lsst.daf.base.PropertyList` (or other
     object with ``add(name, value)`` method).
   - ``log``: an instance of `lsst.log.Log`.
Examples
--------
To use:
.. code-block:: python
    import lsst.pipe.base as pipeBase
    class FooTask(pipeBase.Task):
        pass
        @pipeBase.timeMethod
        def run(self, ...): # or any other instance method you want to time
            pass
 
Definition at line 116 of file timer.py.