Download ARM Instruction Set
Transcript
ARM Profiler -Sort Self tells the profiler to sort the output by the time spent in each function (excluding the time spent in its children). -Sort Descendantstells the profiler to sort the output by the time spent in all of a function’s children but excluding time spent in the function itself. -Sort Calls tells the profiler to sort the output by the number of calls to each function in the listing. By default, child functions are listed, but not parent functions, and the output is sorted by cumulative time. 8.2.1 Example armprof -parent sort.prf 8.3 Profiler output The profiler output is split into a number of sections, each section separated by a line. Each section gives information on a single function. In a flat profile (ie. one with no parent or child function information) each section is just a single line. The following shows example sections for functions called ‘insert_sort’ and ‘strcmp’. Name cum% self% desc% calls -------------------------------------------------------------------main 17.69% 60.06% 1 insert_sort 77.76% 17.69% 60.06% 1 strcmp 60.06% 0.00% 243432 -------------------------------------------------------------------qs_string_compare 3.21% 0.00% 13021 shell_sort 3.46% 0.00% 14059 insert_sort 60.06% 0.00% 243432 strcmp 66.75% 66.75% 0.00% 270512 -------------------------------------------------------------------Functions listed before the current function are parents of that function and functions listed afterwards are child functions. The cum% column is only applicable to the current function and gives the percentage of the total time accounted for by this function and all of its children. The other columns have slightly different meanings depending on whether the line is a parent function, a child function or the current function itself. For the current function the self% column gives the percentage time spent in this function itself, the desc% column gives the percentage time spent in the children of this function, and the calls column gives the number of calls to this function. Reference Manual ARM DUI 0020D 8-3