1. A method for estimating a dominant computational resource which is used by a computer program, comprising: calculating, at a computer, a nesting level for a basic block in the computer program; determining whether the nesting level is greater than a specified threshold; in response to the nesting level being greater than the specified threshold, analyzing the basic block to determine a dominant computational resource used by the basic block; estimating the dominant computational resource used by the computer program, which involves aggregating the determined dominant computational resources used by a plurality of basic blocks having nesting levels greater than the specified threshold; and scheduling the computer program to run on a corresponding node in a multi-computer system based on the estimated dominant computational resource used by the computer program.