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 tosample_os_initialize()
,sample_pause_end()
andsample_os_shutdown()
introduced in step 1, the functionssample_header()
is used to display a heading message andsample_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 functionsample_show_runtime_info()
to see how runtime information is retrieved from themco_runtime_info_t
structure returned by calling the static API functionmco_get_runtime_info()
.