Skip to content
Snippets Groups Projects
Select Git revision
  • d2d87e410855a69ba01a0c1a296cac9320ee2d25
  • master default protected
  • marco/atkis-skylark-speed-opt
  • marco/master-skylark-speed-opt
  • atkis
  • marco/atkis-fix-unit-tests
  • development
  • marco/aquacrop-fix-api-use
  • precompile-statements
  • precompile-tools
  • tmp-faster-loading
  • skylark
  • testsuite
  • code-review
  • v0.8
  • 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
26 results

runprofile.jl

Blame
  • Daniel Vedder's avatar
    xo30xoqa authored
    Searching for neighbours turned out to consume ~80% of processing time...
    b7a84c85
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    runprofile.jl 531 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_results/profile_flat.txt", "w") do s
        Profile.print(IOContext(s, :displaysize=>(300,145)), format=:flat, mincount=10, sortedby=:count)
    end
    
    open("profile_results/profile_tree.txt", "w") do s
        Profile.print(IOContext(s, :displaysize=>(300,300)), mincount=10)
    end