Share this page

# 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);
    }

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: