Step 2: Runtime Information

It is useful to examine eXtremeDB runtime information as demonstrated in SDK sample samples/native/core/01_rtconfig_inmem. Please build and run this sample and note the information displayed. In the source file main.c notice that a number of “sample helper” functions are called. In addition to sample_os_initialize(), sample_pause_end() and sample_os_shutdown() introduced in step 1, the functions sample_header() is used to display a heading message and sample_show_runtime_info() is called to display runtime information.

These helper functions are implemented in file common.c and encapsulate many standard operations, allowing simplification of the sample application code to illustrate only the points of interest. Here it is instructive to examine function sample_show_runtime_info() to see how runtime information is retrieved from the mco_runtime_info_t structure returned by calling the static API function mco_get_runtime_info().