module profiling._event_profiler

Short summary

module cpyquickhelper.profiling._event_profiler

Implements a profiler to log events.

source on GitHub

Classes

class

truncated documentation

CEventProfiler

C++ buffer for @see cl EventProfiler.

CEventProfilerEvent

Description of an event logged by the the class @see cl CEventProfiler.

Properties

property

truncated documentation

event

event kind

id_arg

arg id

id_frame

frame id

time

time

value1

first value

value2

second value

Documentation

Implements a profiler to log events.

class cpyquickhelper.profiling._event_profiler.CEventProfiler(self: cpyquickhelper.profiling._event_profiler.CEventProfiler, size: int)

Bases: pybind11_object

C++ buffer for @see cl EventProfiler.

__getitem__(self: cpyquickhelper.profiling._event_profiler.CEventProfiler, arg0: int) cpyquickhelper.profiling._event_profiler.CEventProfilerEvent

Returns the ith bytes of the container.

__init__(self: cpyquickhelper.profiling._event_profiler.CEventProfiler, size: int) None
__iter__(self: cpyquickhelper.profiling._event_profiler.CEventProfiler) Iterator
__len__(self: cpyquickhelper.profiling._event_profiler.CEventProfiler) int

usual

__repr__(self: cpyquickhelper.profiling._event_profiler.CEventProfiler) str

usual

__str__(self: cpyquickhelper.profiling._event_profiler.CEventProfiler) str

usual

c_log_event(self: cpyquickhelper.profiling._event_profiler.CEventProfiler, arg0: handle, arg1: str, arg2: handle) None

Logs an evant faster.

clear(self: cpyquickhelper.profiling._event_profiler.CEventProfiler, arg0: bool) None

Empties the buffer.

delete(self: cpyquickhelper.profiling._event_profiler.CEventProfiler) None

Decrefs all the stored objects.

dump_and_clear(self: cpyquickhelper.profiling._event_profiler.CEventProfiler, arg0: numpy.ndarray[numpy.int64], arg1: bool) int

Copies the buffer into an array and clears it.

get_saved_maps(self: cpyquickhelper.profiling._event_profiler.CEventProfiler) tuple

Returns the mappings between ids and python objects.

lock(self: cpyquickhelper.profiling._event_profiler.CEventProfiler) None

Lock the profiler.

log_event(self: cpyquickhelper.profiling._event_profiler.CEventProfiler, arg0: int, arg1: int, arg2: int, arg3: int, arg4: int) bool

Logs an event.

n_columns() int

Returns the number of stored int64 per event.

register_pyinstance(self: cpyquickhelper.profiling._event_profiler.CEventProfiler, arg0: object) None

Registers the python instance with holds this one.

start(self: cpyquickhelper.profiling._event_profiler.CEventProfiler) None

Starts the memory profiler.

stop(self: cpyquickhelper.profiling._event_profiler.CEventProfiler) None

Stops the memory profiler.

unlock(self: cpyquickhelper.profiling._event_profiler.CEventProfiler) None

Unlock the profiler.

class cpyquickhelper.profiling._event_profiler.CEventProfilerEvent

Bases: pybind11_object

Description of an event logged by the the class @see cl CEventProfiler.

__init__(*args, **kwargs)
__str__(self: cpyquickhelper.profiling._event_profiler.CEventProfilerEvent) str

usual

property event

event kind

property id_arg

arg id

property id_frame

frame id

property time
property value1

first value

property value2

second value