pub unsafe extern "C" fn magma_connection_add_performance_counter_buffer_offsets_to_pool(
    connection: magma_connection_t,
    pool_id: magma_perf_count_pool_t,
    offsets: *const magma_buffer_offset_t,
    offsets_count: u64
) -> magma_status_t
Expand description

\brief Adds a an array of buffers + offset to the pool. |offsets[n].buffer_id| is the koid of a buffer that was previously imported using ImportBuffer(). The same buffer may be added to multiple pools. The pool will hold on to a reference to the buffer even after ReleaseBuffer is called. When dumped into this entry, counters will be written starting at |offsets[n].offset| bytes into the buffer, and up to |offsets[n].offset| + |offsets[n].size|. |offsets[n].size| must be large enough to fit all enabled counters. Performance counter access must have been enabled using magma_connection_enable_performance_counter_access before calling this method. \param connection An open connection to a device. \param pool_id An existing pool. \param offsets An array of offsets to add. \param offsets_count The number of elements in offsets.