[proflog] Add counters_init and counters_sample functions
[proflog] Add integration of counters_init and counters_sample

counters_init is called at the end of runtime initialization, on runtime_initialized hook
counters_sample is called in the helper_thread at least once per second