Record file system write event in samples.