Requesting Database Statistics Using the Services API
You can use the cluster identifier isc_action_svc_db_stats
to request the Service Manager prepare database statistics. This corresponds to the functionality of the gstat
command-line utility. You can subsequently receive this information using isc_service_query()
(see Querying Service Tasks). The following table lists arguments to isc_action_svc_db_stats
:
Argument | Purpose | Argument length | Argument value |
---|---|---|---|
|
Path of the primary file of the database, from the server’s point of view |
2 bytes + string |
String |
|
The following value is a bitmask of |
4 bytes |
Bitmask |
|
Request statistics for user data pages; corresponds to |
— |
Bit |
|
Request only the information in the database log pages; corresponds to |
— |
Bit |
|
Request only the information in the database header page; corresponds to |
— |
Bit |
|
Request statistics for user index pages; corresponds to |
— |
Bit |
|
Request statistics for system tables and indexes in addition to user tables and indexes; corresponds to |
— |
Bit |