logInfo¶
-
lsst.pipe.base.
logInfo
(obj, prefix, logLevel=10000)¶ Log timer information to
obj.metadata
andobj.log
.- Parameters
- obj
lsst.pipe.base.Task
-type A
Task
or any other object with these two attributes:metadata
an instance oflsst.daf.base.PropertyList`
(or other object withadd(name, value)
method).log
an instance oflsst.log.Log
.
- prefix
Name prefix, the resulting entries are
CpuTime
, etc.. For example timeMethod usesprefix = Start
when the method begins andprefix = End
when the method ends.- logLeveloptional
Log level (an
lsst.log
level constant, such aslsst.log.Log.DEBUG
).
- obj
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 usedin 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.