Skip to content

Memory profiling? #17

@DamienIrving

Description

@DamienIrving

First off, thank you for the great extras lesson on profiling. I'm teaching the regular command line programs lesson today and I'm going to round it off with some (very basic!) examples of how you can interrogate your scripts once you've written them. For debugging I'll simply use pdb.set_trace(), for time profiling I'll definitely be using line_profiler (there are so many time profilers out there but I wasn't aware of one that simple to use!), but I was wondering if there is an equivalently simple tool for memory profiling? In my own work I quite often get memory errors due to the large data arrays I work with, but the many different profiler options out there confuse me. I was thinking you could add a quick note/reference in your lesson to a simple memory profiler?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions