We used the final version of the program in section 10.2.2. The following session shows the profile of the resulting program. The diagram below the session is the call graph for the executed program drawn in a pictorial form.

What will be an ideal response?

```
$ gprof -b power | more
Flat profile:

Each sample counts as 0.01 seconds.
no time accumulated

% cumulative self self total
time seconds seconds calls Ts/call Ts/call name
0.00 0.00 0.00 20 0.00 0.00 input
0.00 0.00 0.00 10 0.00 0.00 compute
^L
Call graph

granularity: each sample hit covers 4 byte(s) no time propagated

index % time self children called name
0.00 0.00 20/20 main [12]
[1] 0.0 0.00 0.00 20 input [1]
-----------------------------------------------
0.00 0.00 10/10 main [12]
[2] 0.0 0.00 0.00 10 compute [2]
-----------------------------------------------
^L
Index by function name
[2] compute [1] input
$
```

Computer Science & Information Technology

You might also like to view...

The __________ __________ states the purpose for which you want to open a sequential file.

Fill in the blank(s) with correct word

Computer Science & Information Technology

In designing a management information system (MIS), the first task is to _____.

a. clearly define the system's objectives

b. clearly define the system's database

c. clearly define the system's hardware components

d. clearly define the system's users

Computer Science & Information Technology