Adds a new option -trace_after_instrs which counts instructions and once the dynamic instruction count hits the specified threshold, tracing is only then enabled. This is more efficient than the -skip_refs simulation-side option.
Fixes a drmgr bug hit by the dynamic event removal and adding exercised by this feature.
Adds a test of the option.
Issue: #2645 (closed)