Provides thread and stack-trace views
This module provides a collection of views for
visualizing threads, green threads, and stack traces
in human-readable form.
-
class GreenThreadView
Bases: object
A Green Thread View
This view displays a green thread provided by the data
model openstack.common.report.models.threading.GreenThreadModel # noqa
-
FORMAT_STR = '------{thread_str: ^60}------\n{stack_trace}'
-
class StackTraceView(path=None, text=None)
Bases: nova.openstack.common.report.views.jinja_view.JinjaView
A Stack Trace View
This view displays stack trace models defined by
openstack.common.report.models.threading.StackTraceModel
-
VIEW_TEXT = '{% if root_exception is not none %}Exception: {{ root_exception }}\n------------------------------------\n\n{% endif %}{% for line in lines %}\n{{ line.filename }}:{{ line.line }} in {{ line.name }}\n {% if line.code is not none %}`{{ line.code }}`{% else %}(source not found){% endif %}\n{% else %}\nNo Traceback!\n{% endfor %}'
-
class ThreadView
Bases: object
A Thread Collection View
This view displays a python thread provided by the data
model openstack.common.report.models.threading.ThreadModel # noqa
-
FORMAT_STR = '------{thread_str: ^60}------\n{stack_trace}'