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:
objectA Green Thread Data Generator
This generator returns a collection of
oslo_reports.models.threading.GreenThreadModelobjects by introspecting the current python garbage collection state, and sifting through forgreenlet.greenletobjects.See also
Function
_find_objects()
-
class
oslo_reports.generators.threading.ThreadReportGenerator(curr_thread_traceback=None)¶ Bases:
objectA Thread Data Generator
This generator returns a collection of
oslo_reports.models.threading.ThreadModelobjects 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.