[profiler] Fix sampling timestamp output.