dasf.profile.profiler
Attributes
Classes
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Module Contents
- class dasf.profile.profiler.EventPhases[source]
- COMPLETE = 'X'
- DURATION_BEGIN = 'B'
- DURATION_END = 'E'
- INSTANT = 'I'
- ASYNC_BEGIN = 'b'
- ASYNC_INSTANT = 'n'
- ASYNC_END = 'e'
- FLOW_BEGIN = 's'
- FLOW_STEP = 't'
- FLOW_END = 'f'
- COUNTER = 'C'
- OBJECT_CREATED = 'N'
- OBJECT_SNAPSHOT = 'O'
- OBJECT_DESTROYED = 'D'
- METADATA = 'M'
- MARK = 'R'
- class dasf.profile.profiler.InstantEvent[source]
- name: str
- timestamp: float
- phase: str
- scope: str
- process_id: int = 0
- thread_id: int = 0
- args: dict
- class dasf.profile.profiler.CompleteEvent[source]
- name: str
- timestamp: float
- duration: float
- phase: str
- process_id: int = 0
- thread_id: int = 0
- args: dict
- class dasf.profile.profiler.DurationBeginEvent[source]
- name: str
- timestamp: float
- phase: str
- process_id: int = 0
- thread_id: int = 0
- args: dict
- class dasf.profile.profiler.DurationEndEvent[source]
- name: str
- timestamp: float
- phase: str
- process_id: int = 0
- thread_id: int = 0
- args: dict
- dasf.profile.profiler.EventTypes
- dasf.profile.profiler.event_classes
- class dasf.profile.profiler.EventDatabase[source]
Bases:
abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
- class dasf.profile.profiler.FileDatabase(database_file='traces.msgpack', commit_threshold=5000, remove_old_output_file=False, commit_on_close=True, lock_timeout=30, default_byte_size=8, flush=True)[source]
Bases:
EventDatabase
Helper class that provides a standard way to create an ABC using inheritance.
- Parameters:
database_file (str)
commit_threshold (int)
remove_old_output_file (bool)
commit_on_close (bool)
lock_timeout (int)
default_byte_size (int)
flush (bool)
- database_file
- commit_threshold
- commit_on_close
- queue
- lock_timeout
- byte_size
- flush
- class dasf.profile.profiler.EventProfiler(database_file=None, database_creation_kwargs=None, database=None)[source]
- Parameters:
database_file (str)
database_creation_kwargs (dict)
database (EventDatabase)
- traces_file_prefix = 'traces-'
- default_database
- default_database_kwargs
- output_file = None
- record_complete_event(name, timestamp, duration, **kwargs)[source]
- Parameters:
name (str)
timestamp (float)
duration (float)
- record_duration_begin_event(name, timestamp, **kwargs)[source]
- Parameters:
name (str)
timestamp (float)