しきい値としてターゲット CPU/待機時間の比率を設定し、この比率を超えるプログラムユニットのみ表示するようにします。
この例は、ターゲット CPU 時間の 90% を超える関数のみを含む、r001hs 解析結果の perf-detail レポートを表示します。パフォーマンスにあまり影響を与えない関数は除外されます。
$ amplxe-cl -report=perf-detail -r r001hs -cumulative-threshold-percent 90
Module Function CPU Time Cumulative Percent matrix.exe algorithm_2 3.136 70.415 matrix.exe algorithm_1 1.156 96.375
この例は、合計の差の 50% を占める r001hs と r002hs 関数の差のみを表示します。正の差と負の差は別々に処理されます。
$ amplxe-cl -R perf -r r001hs -r r002hs -cumulative-threshold-percent 50
Module Function Result 1:CPU Time Result 2:CPU Time Difference:CPU Time Cumulative Percent matrix.exe algorithm_2 3.106 3.131 -0.025 100.000 Module Function Result 1:CPU Time Result 2:CPU Time Difference:CPU Time Cumulative Percent ntdll.dll KiFastSystemCallRet 0.012 0 0.012 39.956 ntdll.dll NtWaitForSingleObject 0.113 0.110 0.003 50.051
(C) 2010 Intel Corporation. 無断での引用、転載を禁じます。