The oslo_reports.models.threading Module

The oslo_reports.models.threading Module

Provides threading and stack-trace models

This module defines classes representing thread, green thread, and stack trace data models

class oslo_reports.models.threading.GreenThreadModel(stack)

Bases: oslo_reports.models.with_default_views.ModelWithDefaultViews

A Green Thread Model

This model holds data for information about an individual thread. Unlike the thread model, it holds just a stack trace, since green threads do not have thread ids.

See also

Class StackTraceModel

Parameters:stack – the python stack state for the green thread
class oslo_reports.models.threading.StackTraceModel(stack_state)

Bases: oslo_reports.models.with_default_views.ModelWithDefaultViews

A Stack Trace Model

This model holds data from a python stack trace, commonly extracted from running thread information

Parameters:stack_state – the python stack_state object
class oslo_reports.models.threading.ThreadModel(thread_id, stack)

Bases: oslo_reports.models.with_default_views.ModelWithDefaultViews

A Thread Model

This model holds data for information about an individual thread. It holds both a thread id, as well as a stack trace for the thread

See also

Class StackTraceModel

Parameters:
  • thread_id (int) – the id of the thread
  • stack – the python stack state for the current thread
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.