1. A computer implemented method for transparent binary optimization, the computer implemented method comprising: initializing an optimization environment comprising a debugger program, a profiling facility, and an optimizer; attaching a running target program to the debugger program, wherein the debugger program monitors process execution of the target program; responsive to monitoring the running target program, collecting profile data of the running target program using the profiling facility; providing the profile data to the optimizer, wherein the optimizer analyzes the profile data and existing code of the running target program; responsive to a determination to optimize the existing code based on the profile data, generating optimized code for the running target program; and providing the optimized code to the debugger program, wherein the debugger program inserts the optimized code into a virtual address space of the running target program, and wherein inserting the optimized code into the virtual address space of the running target program is in response to a comparison of a size of the optimized code to a size of the existing code of the running target program.