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...

A network located in your home is an example of a(n) ____.

A. WAN B. LAN C. Internet D. modem

Computer Science & Information Technology

Input masks do not affect how data is stored

Indicate whether the statement is true or false

Computer Science & Information Technology

Text is not accepted in a cell unless you press the Enter or Tab key.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which of the following media access methods features a node broadcasting a tone prior to transmitting?

A. CSMA/CT B. CSMA/CS C. CSMA/CA D. CSMA/CD

Computer Science & Information Technology