ezmsg.sigproc.util.profile#

Functions

get_logger_path()[source]#
Return type:

Path

profile_method(trace_oldest=True)[source]#

Decorator to profile a method by logging its execution time and other details.

Parameters:

trace_oldest (bool) – If True, trace the oldest sample time; otherwise, trace the newest.

Returns:

The decorated function with profiling.

Return type:

Callable

profile_subpub(trace_oldest=True)[source]#

Decorator to profile a subscriber-publisher method in an ezmsg Unit by logging its execution time and other details.

Parameters:

trace_oldest (bool) – If True, trace the oldest sample time; otherwise, trace the newest.

Returns:

The decorated async task with profiling.

Return type:

Callable

get_logger_path()[source]#
Return type:

Path

profile_method(trace_oldest=True)[source]#

Decorator to profile a method by logging its execution time and other details.

Parameters:

trace_oldest (bool) – If True, trace the oldest sample time; otherwise, trace the newest.

Returns:

The decorated function with profiling.

Return type:

Callable

profile_subpub(trace_oldest=True)[source]#

Decorator to profile a subscriber-publisher method in an ezmsg Unit by logging its execution time and other details.

Parameters:

trace_oldest (bool) – If True, trace the oldest sample time; otherwise, trace the newest.

Returns:

The decorated async task with profiling.

Return type:

Callable