[proflog] Add counters sampling to helper thread loop