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
.
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 for greenlet.greenlet
objects.
See also
Function _find_objects()
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 using
sys._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.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.