Memory allocation, where are the .mem files


#1

Hi,

I wanted to track the memory allocated by a function I’ve written for a package. I’ve read the docs about the track allocation flag and have done the following:

N82106:Desktop bward$ julia --track-allocation=user
julia> using BioSequences

julia> using GeneticVariation

julia> cdn = DNACodon(0x000000000000000)
DNA 3-mer:
AAA

# Eval once to compile
julia> GeneticVariation.expected_NG86(cdn, 1.0, GeneticVariation.DEFAULT_TRANS)
(0.3333333333333333, 2.6666666666666665)

julia> Profile.clear_malloc_data()

julia> GeneticVariation.expected_NG86(cdn, 1.0, GeneticVariation.DEFAULT_TRANS)
(0.3333333333333333, 2.6666666666666665)

julia> exit()

But I get no .mem file:

N82106:Desktop bward$ ls *.mem
ls: *.mem: No such file or directory

What am I missing to make this work?


#2

They are in the same directory as the source files.


#3

Oh I see, they get added with source files of the package, I thought it would output a .mem file to the same place as my allocation testing script!


#4

Yeah, sorry for being as unclear as the documentation.