Merge pull request #1392 from ludovic-henry/pr34-proflog-counters-sample-shutdown