1. A computerized method for profiling an executable program comprising: determining, by a processing circuit, one or more references to a portion of code in the executable program; generating, by the processing circuit, a plurality of versions of the portion of code, each generated version having a different number of instrumentation instructions inserted into the portion of the code; inserting, by the processing circuit, the generated versions of the portion of code into the executable program; generating, by the processing circuit, a control function that conditionally executes the generated versions of the portion of the code; inserting, by the processing circuit, the control function into the executable program; and replacing, by the processing circuit, the one or more references to the portion of code with one or more references to the control function.