Example: lr_user_data_point

In the following example, a user data point is defined that checks the CPU every second and records the result.

for (i=0;i<100;i++) {
    measure_cpu( );
    cpu_val=cpu_check();    lr_user_data_point("cpu", cpu_val);     sleep(1); }