latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
FunctionEvent
- class tensorplay.profiler.FunctionEvent(event, self_ns=0, self_cuda_us=0.0, children=(), device_us=None)[source]
Read-only object view over one collected event tuple.
- property device_time_total
Device time for this span and for the work dispatched inside it.
The span’s own device time when it dispatched any, and otherwise the sum over what it encloses; a span that did both is both, because a caller asking what a region cost is asking about the region and not about the one call inside it that happened to be the timed one. An annotation around a piece of work dispatches nothing itself, so for the span whose time is actually wanted this is the whole answer rather than zero.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

