资 源 简 介
The script looks through the oprofile output and builds a dictionary containing the function names and the percentage of cpu cycles used by each. It then searches for the function names in the ctags output in order to determine the location of each function inside the kernel. Finally, the program creates a tree representing the directory structure of the kernel. Each node represents a directory, file, or function, and contains the associated cpu percentage.
The program outputs a long list of nodes from each level of the tree and their associated cpu percentages. This uses a level order traversal sequence.
More information about oprofile:
http://oprofile.sourceforge.net/news/
http://www.cs.utk.edu/~vose/c-stuff/oprofile.html