[][src]Function onednn_sys::dnnl_set_jit_profiling_flags

pub unsafe extern "C" fn dnnl_set_jit_profiling_flags(
    flags: c_uint
) -> dnnl_status_t

Sets library profiling flags. The flags define which profilers are supported.

@note This setting overrides DNNL_JIT_PROFILE environment variable.

@sa @ref dev_guide_profilers

@param flags Profiling flags that can contain the following bits: - @ref DNNL_JIT_PROFILE_VTUNE -- integration with VTune Amplifier (on by default) - @ref DNNL_JIT_PROFILE_LINUX_JITDUMP -- produce Linux-specific jit-pid.dump output (off by default). The location of the output is controlled via JITDUMPDIR environment variable or via dnnl_set_jit_profiling_jitdumpdir() function. - @ref DNNL_JIT_PROFILE_LINUX_PERFMAP -- produce Linux-specific perf-pid.map output (off by default). The output is always placed into /tmp.

Passing @ref DNNL_JIT_PROFILE_NONE disables profiling completely.

@returns #dnnl_invalid_arguments/#dnnl::status::invalid_arguments if the @p flags value is invalid, and #dnnl_success/#dnnl::status::success on success.