















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















2
4
ļ® Benchmark programs are used to compare the performance of computer systems
5
7
8
Program text main() func1() func2() func3() func4() func5() func6() func7() func8() 0x 0x000FA4D profil( ) buffer PC value 0 bufsize- 1 scaled to a value between 0 and bufsize- 1 Every 10 msec And that buffer counter is incremented
10
ļ® Remember that there could be other programs running on the same system ļ® This can affect the behaviour of the profiling run in terms of page faults, cache misses, etc
ļ® e.g., there could be a particular function that just happens to be running each time the timer interrupt occurs
11
10 msec A( ) B( ) The prof profile will show 100% of the execution time being spent in function A()
13
14
16
Program Text Problem case: JR R
17
19
20
ļ® There can be a lot of basic blocks in a program
ļ® LW R1, counter ļ® ADDI R1, R1, 1 ļ® SW counter, R