Profiling and Optimization Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is real time (wall clock time)?

A

Total time from start to finish

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is CPU time?

A

Time spent executing instructions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is User CPU time?

A

Time spent executing in user mode (your code)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is System CPU time?

A

Time spent executing in kernel mode (OS code)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an execution profile?

A

Locates hot spots and improves performance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to use gprof?

A
  1. Compile and link program with -pg option to gcc
  2. Run the program, creating a data file gmon.out
  3. Use gprof command to produce a report
How well did you know this?
1
Not at all
2
3
4
5
Perfectly