Skip to content

Sparse mmap()s are counted as fully allocated from the start, which can be very misleading #308

@itamarst

Description

@itamarst

Discussed in #297

Originally posted by fohria January 26, 2022
hey! thanks for this profiler, it looks very useful, if i can figure out how to use it :)

i have a short script that, in short, generates a bunch of data, and then plots it. depending on how much i generate, memory use can be many gigabytes. so i'd like to profile it so i can find out when and where i may have some dataframes hanging around from function calls that i can delete when they're not needed anymore, like after i have dumped it to a file.

however, running it with fil, i get this:

image

the light pink on the left are the plotting calls, but what does it mean that it says <frozen importlib._bootstrap> all over?

tldr version of my code is:

data = generate_data(how_much)  # returns a pd.dataframe
figure = plotting_call(data)

(i've installed fil to the same conda env i use for the script, if that matters)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions