1. A processor comprising: circuitry for implementing an instruction set of the processor; and circuitry for implementing a register file; wherein the register file provides operand inputs for instructions of the instruction set; and wherein the instruction set comprises a profiling instruction that receives a first input and a second input from the register file and a third input either from the register file or from a special register whose value was set by a previous instruction.