Example: lr_user_data_point_ex
The following segment checks the CPU every second and records the result as a user data point. The data point's log flag is Standard and will be logged only if the log runtime setting is Standard or Extended level.
for (i=0;i<100;i++) { measure_cpu( );
cpu_val=cpu_check(); lr_user_data_point_ex("cpu", cpu_val, DP_FLAGS_STANDARD_LOG); sleep(1); }