Colorado

Our trip with family to Keystone, Breckinridge, Rocky Mountain National Park.

Statistical Profiling in Python, Part 2: Memory

In Part 1 I wrote about sampling where a Python program spends its time. Memory usage is the other half of the question. Like time profiling, you can trace every allocation (which is what the standard library tracemalloc does), but this is far too expensive to leave enabled in a production server, so it usually gets enabled after the problem appears, on a process that no longer contains the interesting state.

Pagination


© 2018. All rights reserved.

Powered by Hydejack v9.2.1