The oslo_reports.generators.threading
Module¶
Provides thread-related generators
This module defines classes for threading-related
generators for generating the models in
oslo_reports.models.threading
.
-
class
oslo_reports.generators.threading.
GreenThreadReportGenerator
¶ Bases:
object
A Green Thread Data Generator
This generator returns a collection of
oslo_reports.models.threading.GreenThreadModel
objects by introspecting the current python garbage collection state, and sifting through forgreenlet.greenlet
objects.See also
Function
_find_objects()
-
class
oslo_reports.generators.threading.
ThreadReportGenerator
(curr_thread_traceback=None)¶ Bases:
object
A Thread Data Generator
This generator returns a collection of
oslo_reports.models.threading.ThreadModel
objects by introspecting the current python state usingsys._current_frames()
. Its constructor may optionally be passed a frame object. This frame object will be interpreted as the actual stack trace for the current thread, and, come generation time, will be used to replace the stack trace of the thread in which this code is running.