Function tarantool::fiber::csw

source ·
pub fn csw() -> u64
Expand description

Returns number of context switches of the current fiber.

NOTE: if has_fiber_id returns false this function uses an inefficient implementation based on the lua api.