1. A method comprising: during a compile of code, determining whether to place a snapshot instruction immediately before a machine instruction within a module, wherein the determination includes analyzing parameters associated with the machine instruction.