1. A method for performing a replay, comprising: initiating execution of a program, the program having a plurality of sets of instructions, each set of instructions having a number of chunks of instructions; intercepting, by a virtual machine unit executing on a processor, an instruction of a chunk of the number of chunks before execution; determining, by a replay module executing on the processor, whether the chunk is an active chunk; and responsive to the chunk being the active chunk, executing the instruction.