How do I get rid of all the time spent in terminal I/O? Place an event marker before each terminal I/O statement and a different event marker after the terminal I/O statement. Then use SET FILTER foo TIME <> the_first_event_marker_name in the Analyzer. This will discard all the time spent waiting for terminal I/O.