Serial snapshotting command implemented, recorder thread can now notify when it's time to take a snapshot, to ensure that snapshots are not taken before the relevant samples are written to memory.