simulator: print per-instruction stats as comma-separated values