1. A device comprising: a code analyzer unit to determine one or more instructions called by a code segment; and a code instrumentation unit to select a subset of a plurality of processing cores to execute the code segment and to modify the code segment to include one or more control operations based on the selected subset of the plurality of processing cores.