| September 19, 2008 1:00 AM PDT | |
|
The VTune™ Performance Analyzer provides several call graph ratios in the call graph display, specifically:
These are additional metrics that may be useful in some situations and are discussed below. % in function is really a quick way to get the info normally displayed on the call list tab without switching to the call list tab. That is, the call list tab will show which functions contribute to the total time of the function. % in function tells you whether or not the called functions contributed significantly to the total time of the function. If the number is low, you know that the called functions were the major contributors to this function. A high % in function indicates that the function's own code contributed more to the total time than the code of called functions and you might then look at the ratio Average Self time per call. A high Average Self time per call (along with a significant number of Calls) could indicate a good candidate for optimization, since any improvement in performance would be magnified by the number of times the function is called. Also, a high Average Self time per call would indicate that optimizing the body of the selected function would result in better performance than optimizing any of the called functions. Of course, that is assuming that the selected function is a major contributor to the overall application's execution time. If the called function is called by another function that contributes more than the selected function, it may make sense to optimize the called function. You have to examine the algorithm and make that determination. Sorting by Average total time per call and finding functions that have both a high number of calls and a low Average self time per call (assuming the Total time for the functions are still significant with respect to the total time of the application), will identify functions that might benefit from being managed in multiple threads. Look at the context of the callees to see if introducing threads make sense. That is, consider the following:
|
This article applies to: Software Products General
For more complete information about compiler optimizations, see our Optimization Notice.
Comments (0) 
Trackbacks (0)
Leave a comment 
To obtain technical support, please go to Software Support.
