[proflog] Add counters sampling on profiler shutdown