Navigation

New in buildbot 0.8.4 is support for tracking various performance metrics inside the buildbot master process.
Currently these are logged periodically according to the log_interval configuration setting of the metrics configuration.

The metrics subsystem is implemented in buildbot.process.metrics.
It makes use of twisted’s logging system to pass metrics data from all over buildbot’s code to a central MetricsLogObserver object, which is available at BuildMaster.metrics or via Status.getMetrics().

MetricsHandler objects are responsible for collecting MetricEvents of a specific type and keeping track of their values for future reporting.
There are MetricsHandler classes corresponding to each of the MetricEvent types.

A function decorator that measures how long a function takes to execute.
Note that many functions in buildbot return deferreds, so may return before all the work they set up has completed.
Using an explicit Timer is better in this case.