__lttng_counter_add: skip effect-less code when global_sum_step=0
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 2 Sep 2022 20:18:43 +0000 (16:18 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 12 Jul 2024 15:39:51 +0000 (11:39 -0400)
commitd712373637fc2144cde7212cf7252dbb9c6b9c3e
treefee491605fed49fed4dce31f775f83f18925c08b
parent09fd84e6473e461f3ac6424f99dcb2e3fbc634e7
__lttng_counter_add: skip effect-less code when global_sum_step=0

Skip effect-less code in the common case where global_sum_step=0.
This saves about 1.5ns on x86-64.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I0dacb9f189c0d47dd608dbef6f4aba969a6b0a4a
src/common/counter/counter-api.h
This page took 0.024201 seconds and 4 git commands to generate.