1. A method for dynamically instrumenting a program at runtime, the method comprising: identifying, by a processor, a sequence of memory related operations from an instruction stream, wherein the sequence includes at least a first memory related operation and a second memory related operation; instrumenting, by the processor, the first memory related operation; detecting, by the processor, an error at the first memory related operation based on the instrumentation of the first memory related operation; responsive to detecting the error at the first memory related operation, instrumenting, by the processor, at least the second memory related operation.