-
Notifications
You must be signed in to change notification settings - Fork 0
Lecture 6
JunjieW edited this page Mar 1, 2017
·
2 revisions
- Install
line_profiler, using eitherpip install line_profilerorconda install line_profiler
- Monitor all function calls/returns and other events
- Precise timing
- By instrumenting the program - inserting intructions into the program that collect this timing information
- Randomly samples the effective instruction pointer
- Less overhead, but less precise
- identify bugs
- identify possible tuning points
- identify "hot loops" that should be carefully optimized
- identify high level system design or algorithm adoption
- lowest overhead, written in C, may not be as widely available
- Written in Python, so much higher overhead, but easier to extend