Retrieve the total number of registered runtime statistics counters and histograms.
MCO_RET mco_stat_counter_count(
/*OUT*/ mco_stat_hdl *ncounters,
/*OUT*/ mco_stat_hdl *nhist
);
ncounters
nhist
This function returns metadata about the current runtime statistics configuration. It is typically used by monitoring tools or diagnostic interfaces to determine how many counters are available for querying via functions like
mco_stat_counter_get()ormco_stat_get_counter_info().The values reflect the state after all calls to
mco_statrt_register_counter()have been made and the database runtime has been initialized. The counters are global to the process and shared across all database connections.Note: This function can only be called after the statistics subsystem has been initialized (i.e., after a database with statistics support has been opened).
MCO_S_OK
MCO_E_INVALID_HANDLE