Guido
Guido

Reputation: 483

Memory usage of a function in Python 3.x

Are there any specific Python libraries to quantify practically both space (memory consumption) and time complexity (time consumption) of a specific function in Python 3.x, by providing avg/max/min stats?

Upvotes: -2

Views: 243

Answers (1)

Woody1193
Woody1193

Reputation: 7980

You can find the memory usage of a process using the os and psutil libraries according to the answer given here.

Upvotes: 1

Related Questions