Module: Datadog::Profiling::Collectors::DynamicSamplingRate::Testing

Defined in:
ext/ddtrace_profiling_native_extension/collectors_dynamic_sampling_rate.c

Class Method Summary collapse

Class Method Details

._native_after_sampleObject



98
# File 'ext/ddtrace_profiling_native_extension/collectors_dynamic_sampling_rate.c', line 98

VALUE _native_after_sample(DDTRACE_UNUSED VALUE self, VALUE wall_time_ns_after_sample, VALUE sampling_time_ns);

._native_get_sleepObject

Below here is boilerplate to expose the above code to Ruby so that we can test it with RSpec as usual.



96
# File 'ext/ddtrace_profiling_native_extension/collectors_dynamic_sampling_rate.c', line 96

VALUE _native_get_sleep(DDTRACE_UNUSED VALUE self, VALUE simulated_next_sample_after_monotonic_wall_time_ns, VALUE current_monotonic_wall_time_ns);

._native_should_sampleObject



97
# File 'ext/ddtrace_profiling_native_extension/collectors_dynamic_sampling_rate.c', line 97

VALUE _native_should_sample(DDTRACE_UNUSED VALUE self, VALUE simulated_next_sample_after_monotonic_wall_time_ns, VALUE wall_time_ns_before_sample);