1. A method for profiling a set of computer code, comprising: selecting a code segment within a set of computer code that is executed during execution of the set of computer code; accessing a decomposed representation of said code segment, said decomposed representation specifying one or more basic instructions that are executed to execute said code segment; determining a resource measure for each of the basic instructions specified in said decomposed representation, wherein a resource measure for a basic instruction provides an indication of an amount of processing resources consumed in executing that basic instruction; and deriving, based upon said decomposed representation and the resource measures, an execution cost for said code segment, wherein said execution cost provides an indication of an amount of processing resources consumed in executing said code segment.