Thanks for the update.   I'm not getting the process to work myself.  I 
suspect it is the Windows platform that is somehow causing the trouble.  I 
will try later  on Linux. (I believe you were successful on the Mac?)

Petr

On Tuesday, January 6, 2015 3:59:45 PM UTC-8, Rob J Goedman wrote:
>
> Petr,
>
> I ran the Poisson_FE_example_model in REPL as shown below and find the 
> .mem files in the src directory and in the top-level directory.
>
> You were running a different example though.
>
> Rob J. Goedman
> [email protected] <javascript:>
>
> *julia> **cd(Pkg.dir(homedir(), 
> "Projects/Julia/Rob/jfineale_for_trying_out"))*
>
> *julia> *
> *include("/Users/rob/Projects/Julia/Rob/jfineale_for_trying_out/Poisson_FE_example_model.jl")*
> Heat conduction example described by Amuthan A. Ramabathiran
>
> http://www.codeproject.com/Articles/579983/Finite-Element-programming-in-Julia
> :
> Unit square, with known temperature distribution along the boundary, 
> and uniform heat generation rate inside.  Mesh of regular TRIANGLES,
> in a grid of N x N edges. 
> This version uses the JFinEALE algorithm module.
>
> Total time elapsed = 2.8418619632720947s
>
> *julia> **clear_malloc_data()*
>
> *shell> **ls src*
> AssemblyModule.jl HeatDiffusionAlgorithmModule.jl 
> MeshQuadrilateralModule.jl
> FEMMBaseModule.jl IntegRuleModule.jl MeshSelectionModule.jl
> FEMMHeatDiffusionModule.jl JFFoundationModule.jl MeshTriangleModule.jl
> FENodeSetModule.jl MaterialHeatDiffusionModule.jl NodalFieldModule.jl
> FESetModule.jl MeshExportModule.jl PropertyHeatDiffusionModule.jl
> ForceIntensityModule.jl MeshModificationModule.jl
>
> *shell> **ls*
> JFinEALE.jl Poisson_FE_example_model.jl src
> Poisson_FE_Q4_example.jl README.md tests
> Poisson_FE_example.jl annulus_Q4_example.jl
>
> *julia> *
> *include("/Users/rob/Projects/Julia/Rob/jfineale_for_trying_out/Poisson_FE_example_model.jl")*
> Heat conduction example described by Amuthan A. Ramabathiran
>
> http://www.codeproject.com/Articles/579983/Finite-Element-programming-in-Julia
> :
> Unit square, with known temperature distribution along the boundary, 
> and uniform heat generation rate inside.  Mesh of regular TRIANGLES,
> in a grid of N x N edges. 
> This version uses the JFinEALE algorithm module.
>
> Total time elapsed = 0.017609119415283203s
>
> *julia> CTRL-D*
>
>
>
> Robs-MacBook-Pro:jfineale_for_trying_out rob$ 
>
> Robs-MacBook-Pro:~ rob$ pwd
> /Users/rob
> Robs-MacBook-Pro:~ rob$ cd Projects/Julia/Rob/jfineale_for_trying_out/
> Robs-MacBook-Pro:jfineale_for_trying_out rob$ ls src
> AssemblyModule.jl ForceIntensityModule.jl MeshModificationModule.jl
> AssemblyModule.jl.mem ForceIntensityModule.jl.mem 
> MeshQuadrilateralModule.jl
> FEMMBaseModule.jl HeatDiffusionAlgorithmModule.jl MeshSelectionModule.jl
> FEMMBaseModule.jl.mem HeatDiffusionAlgorithmModule.jl.mem 
> MeshSelectionModule.jl.mem
> FEMMHeatDiffusionModule.jl IntegRuleModule.jl MeshTriangleModule.jl
> FEMMHeatDiffusionModule.jl.mem IntegRuleModule.jl.mem 
> MeshTriangleModule.jl.mem
> FENodeSetModule.jl JFFoundationModule.jl NodalFieldModule.jl
> FENodeSetModule.jl.mem MaterialHeatDiffusionModule.jl 
> NodalFieldModule.jl.mem
> FESetModule.jl MaterialHeatDiffusionModule.jl.mem 
> PropertyHeatDiffusionModule.jl
> FESetModule.jl.mem MeshExportModule.jl PropertyHeatDiffusionModule.jl.mem
> Robs-MacBook-Pro:jfineale_for_trying_out rob$ ls
> JFinEALE.jl Poisson_FE_example_model.jl annulus_Q4_example.jl
> Poisson_FE_Q4_example.jl Poisson_FE_example_model.jl.mem src
> Poisson_FE_example.jl README.md tests
> Robs-MacBook-Pro:jfineale_for_trying_out rob$ 
>
>
>
>  
> On Jan 6, 2015, at 3:01 PM, Petr Krysl <[email protected] <javascript:>> 
> wrote:
>
> Rob,
>
> Thanks. I did find some .mem files (see above). Not for my own source 
> files though.
>
> Petr
>
> PS: You have a "fineale" book? Interesting... I thought no one else had 
> claimed that name for a software project before...
>
> On Tuesday, January 6, 2015 2:46:26 PM UTC-8, Rob J Goedman wrote:
>>
>> Petr,
>>
>> Not sure if this helps you, but below sequence creates the .mem file.
>>
>> ProjDir is set in Ex07.jl and is the directory that contains the .mem file
>>
>> Regards,
>> Rob J. Goedman
>> [email protected]
>>
>>
>> Robs-MacBook-Pro:~ rob$ clear; julia  --track-allocation=user
>>
>>                *_*
>>    *_**       _ **_**(_)**_**     |  A fresh approach to technical 
>> computing*
>>   *(_)**     | **(_)* *(_)**    |  Documentation: 
>> http://docs.julialang.org <http://docs.julialang.org/>*
>> *   _ _   _| |_  __ _   |  Type "help()" for help.*
>> *  | | | | | | |/ _` |  |*
>> *  | | |_| | | | (_| |  |  Version 0.3.4 (2014-12-26 10:42 UTC)*
>> * _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ 
>> <http://julialang.org/> release*
>> *|__/                   |  x86_64-apple-darwin13.4.0*
>>
>> *julia> *
>> *include("/Users/rob/.julia/v0.3/FinealeBook/Examples/Fineale/Ch02/Ex07.jl")*
>>
>> *julia> **cd(ProjDir)*
>>
>> *julia> **clear_malloc_data()*
>>
>> *julia> *
>> *include("/Users/rob/.julia/v0.3/FinealeBook/Examples/Fineale/Ch02/Ex07.jl")*
>>
>>  *shell> **ls*
>> Ex07.jl Ex07.svg Ex08.svg Ex09.svg Section2.3.svg
>> Ex07.jl.mem Ex08.jl Ex09.jl Section2.3.jl Section2.4.nb
>>
>> On Jan 6, 2015, at 2:15 PM, Petr Krysl <[email protected]> wrote:
>>
>> I did this as suggested. The code  executed as shown below, preceded by 
>> the command line.
>> The process completes,  but there are no .mem files anywhere. Should I 
>> ask for them specifically?
>>
>> # "C:\Users\pkrysl\AppData\Local\Julia-0.4.0-dev\bin\julia.exe" 
>> --track-allocation=all memory_debugging.jl
>> cd( "C:/Users/pkrysl/Documents/GitHub/jfineale"); include("JFinEALE.jl");
>> include("examples/acoustics/sphere_scatterer_example.jl")
>> Profile.clear_malloc_data()
>> include("examples/acoustics/sphere_scatterer_example.jl")
>> quit()
>>
>>
>>
>> On Tuesday, January 6, 2015 1:50:11 AM UTC-8, Milan Bouchet-Valat wrote:
>>>
>>> Le lundi 05 janvier 2015 à 20:48 -0800, Petr Krysl a écrit : 
>>> > Hi guys, 
>>> > 
>>> > How does one figure out where allocation  of memory occurs?   When I 
>>> > use the @time  macro it tells me there's a lot of memory allocation 
>>> > and deallocation going on.  Just looking at the code I'm at a loss: I 
>>> > can't see the reasons for it there. 
>>> > 
>>> > So, what are the tips and tricks for the curious?  How do I debug the 
>>> > memory allocation issue?  I looked at the lint, the type check, and 
>>> > the code_typed().  Perhaps I don't know where to look, but  these 
>>> > didn't seem to be of much help. 
>>> See this: 
>>>
>>> http://docs.julialang.org/en/latest/manual/profile/#memory-allocation-analysis
>>>  
>>>
>>> (Would probably be good to backport to the 0.3 manual...) 
>>>
>>>
>>> Regards 
>>>
>>>
>>
>

Reply via email to