Skip to content
Snippets Groups Projects
Select Git revision
  • d8f47ad59b1ed7796a112c74839b4f5431191e55
  • master default protected
  • marco-development
  • development
  • fix-missing-weatherdata
  • fix-eichsfeld-weather
  • marco/dev-aquacrop
  • precompile-statements
  • precompile-tools
  • tmp-faster-loading
  • skylark
  • testsuite
  • code-review
  • v0.7.0
  • v0.6.1
  • v0.6.0
  • v0.5.5
  • v0.5.4
  • v0.5.3
  • v0.5.2
  • v0.2
  • v0.3.0
  • v0.4.1
  • v0.5
24 results

almass.jl

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    runprofile.jl 499 B
    #!/usr/bin/env julia
    # A wrapper script to start a Persefone simulation and do a profiling run
    # (https://docs.julialang.org/en/v1/stdlib/Profile/).
    
    using Pkg
    Pkg.activate(".")
    using Persefone
    
    using Profile
    Profile.clear()
    
    @profile simulate()
    
    open("profile_flat.txt", "w") do s
        Profile.print(IOContext(s, :displaysize=>(300,145)), format=:flat, mincount=10, sortedby=:count)
    end
    
    open("profile_tree.txt", "w") do s
        Profile.print(IOContext(s, :displaysize=>(300,300)), mincount=10)
    end