Jason Baker
Jason Baker

Reputation: 198577

What profiling tools exist for Python on Linux beyond the ones included in the standard library?

I've been using Python's built-in cProfile tool with some pretty good success. But I'd like to be able to access more information such as how long I'm waiting for I/O (and what kind of I/O I'm waiting on) or how many cache misses I have. Are there any Linux tools to help with this beyond your basic time command?

Upvotes: 1

Views: 1184

Answers (2)

Mike Dunlavey
Mike Dunlavey

Reputation: 40669

If you want to know exactly what you are waiting for, and approximately what percentage of the time, this will tell you. It won't tell you other things though, like cache misses or memory leaks.

Upvotes: 1

sigjuice
sigjuice

Reputation: 29759

I'm not sure if python will provide the low level information you are looking for. You might want to look at oprofile and latencytop though.

Upvotes: 2

Related Questions