[julia-users] memory use profiling
hi, i feel i must be missing something obvious, sorry, but i can work out what tools are available for understanding "memory leaks" inside my own julia code. this isn't an issue with julia itself - it's my own dumb fault. but i can't see how to get a dump of objects on the heap, or tools to analyse that dump. can someone point me in the right direction, please? thanks, andrew (i know about - and have used profile and profileview - but they don't have memory info, do they? they do have gc information, but what i want is heap use - gc isn't being called!)
Re: [julia-users] memory use profiling
> > i can't see how to get a dump of objects on the heap, or tools to analyse > that dump. In 0.4 there is a new "--track-allocation" command-line option that might help. If you don't mind reading LLVM IR, you can also look for calls to "jl_gc_allocobj" (or just "allocobj" in 0.3). On Tue, Jul 21, 2015 at 9:08 AM, andrew cooke wrote: > > hi, > > i feel i must be missing something obvious, sorry, but i can work out what > tools are available for understanding "memory leaks" inside my own julia > code. this isn't an issue with julia itself - it's my own dumb fault. but > i can't see how to get a dump of objects on the heap, or tools to analyse > that dump. > > can someone point me in the right direction, please? > > thanks, > andrew > > (i know about - and have used profile and profileview - but they don't > have memory info, do they? they do have gc information, but what i want is > heap use - gc isn't being called!) >
Re: [julia-users] memory use profiling
ah https://julia.readthedocs.org/en/latest/manual/profile/#man-track-allocation thanks. although i am not seeing any mem files for some reason. i will try updating julia to latest. oh. i do now! doesn't seem to work with Pkg.test(), but does if you just execute commands at the prompt. excellent! andrew On Tuesday, 21 July 2015 10:28:01 UTC-3, Isaiah wrote: > > i can't see how to get a dump of objects on the heap, or tools to analyse >> that dump. > > > In 0.4 there is a new "--track-allocation" command-line option that might > help. If you don't mind reading LLVM IR, you can also look for calls to > "jl_gc_allocobj" (or just "allocobj" in 0.3). > > On Tue, Jul 21, 2015 at 9:08 AM, andrew cooke > wrote: > >> >> hi, >> >> i feel i must be missing something obvious, sorry, but i can work out >> what tools are available for understanding "memory leaks" inside my own >> julia code. this isn't an issue with julia itself - it's my own dumb >> fault. but i can't see how to get a dump of objects on the heap, or tools >> to analyse that dump. >> >> can someone point me in the right direction, please? >> >> thanks, >> andrew >> >> (i know about - and have used profile and profileview - but they don't >> have memory info, do they? they do have gc information, but what i want is >> heap use - gc isn't being called!) >> > >