1. A dynamic binary rewriter (DBR) framework comprising: a hardware performance monitor, the hardware performance monitor sampling one or more client processes; a DBR service, the DBR service executing as a separate process; and, a DBR agent, the DBR agent executing within the one or more client processes, the DBR agent patching the one or more client processes to use replacement code, the replacement code being functionally equivalent to original code of respective one or more client processes.