I ran @profile but I don’t understand how to read it either. What specifically am I looking for?
It is quite long, but I know it shows how many allocations are needed for certain parts. Here is the first part
=========================================================
╎44245 @Base\client.jl:495; _start()
╎ 44245 @Base\client.jl:309; exec_options(opts::Base.JLOptions)
╎ 44245 @Base\client.jl:379; run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
╎ 44245 @Base\essentials.jl:714; invokelatest
╎ 44245 @Base\essentials.jl:716; #invokelatest#2
╎ 44245 @Base\client.jl:394; (::Base.var"#930#932"{Bool, Bool, Bool})(REPL::Module)
╎ ╎ 44245 ...package_win64\build\usr\share\julia\stdlib\v1.7\REPL\src\REPL.jl:351; run_repl(repl::REPL.AbstractREPL, consumer::Any)
╎ ╎ 44245 ...package_win64\build\usr\share\julia\stdlib\v1.7\REPL\src\REPL.jl:364; run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool)
╎ ╎ 44245 ...ackage_win64\build\usr\share\julia\stdlib\v1.7\REPL\src\REPL.jl:231; start_repl_backend(backend::REPL.REPLBackend, consumer::Any)
╎ ╎ 44245 ...ackage_win64\build\usr\share\julia\stdlib\v1.7\REPL\src\REPL.jl:246; repl_backend_loop(backend::REPL.REPLBackend)
╎ ╎ 44245 ...ackage_win64\build\usr\share\julia\stdlib\v1.7\REPL\src\REPL.jl:150; eval_user_input(ast::Any, backend::REPL.REPLBackend)
╎ ╎ ╎ 44245 @Base\boot.jl:373; eval
╎ ╎ ╎ 44245 @Atom\src\repl.jl:216; evalrepl(mod::Module, line::String)
╎ ╎ ╎ 44245 @Base\logging.jl:623; with_logger
╎ ╎ ╎ 44245 @Base\logging.jl:511; with_logstate(f::Function, logstate::Any)
╎ ╎ ╎ 44245 @Atom\src\repl.jl:228; (::Atom.var"#258#260"{Module})()
╎ ╎ ╎ ╎ 44245 @Atom\src\repl.jl:198; repleval(mod::Module, line::Expr)
╎ ╎ ╎ ╎ 44245 @Base\boot.jl:373; eval
╎ ╎ ╎ ╎ 44241 untitled-403d8f52abe991641ade3c3e069763e9:55; generating_pristine(Ropt::Float64, γ::Float64, num_nutrient::Int64, num_plant::Int64, num_a...
╎ ╎ ╎ ╎ 44241 @DiffEqBase\src\solve.jl:162; (::CommonSolve.var"#solve##kw")(::NamedTuple{(:abstol, :reltol, :callback), Tuple{Float64,...
╎ ╎ ╎ ╎ 44241 @DiffEqBase\src\solve.jl:168; #solve#40
╎ ╎ ╎ ╎ ╎ 44241 @DiffEqBase\src\solve.jl:173; solve_up##kw
╎ ╎ ╎ ╎ ╎ 44241 @DiffEqBase\src\solve.jl:182; solve_up(prob::ODEProblem{Vector{Float64}, Tuple{Float64, Float64}, true, Tuple{Vector{F...
╎ ╎ ╎ ╎ ╎ 44241 @DiffEqBase\src\solve.jl:142; solve_call##kw
╎ ╎ ╎ ╎ ╎ 44241 @DiffEqBase\src\solve.jl:155; #solve_call#39
╎ ╎ ╎ ╎ ╎ 44241 @Sundials\src\common_interface\solve.jl:14; __solve##kw
╎ ╎ ╎ ╎ ╎ ╎ 44241 @Sundials\src\common_interface\solve.jl:14; __solve##kw
╎ ╎ ╎ ╎ ╎ ╎ 44241 @Sundials\src\common_interface\solve.jl:14; __solve##kw
╎ ╎ ╎ ╎ ╎ ╎ 44241 @Sundials\src\common_interface\solve.jl:14; __solve##kw
╎ ╎ ╎ ╎ ╎ ╎ 44241 @Sundials\src\common_interface\solve.jl:14; __solve##kw
╎ ╎ ╎ ╎ ╎ ╎ 13 @Sundials\src\common_interface\solve.jl:14; __solve(prob::ODEProblem{Vector{Float64}, Tuple{Float64, Float64}, true, Tuple{Vecto...
╎ ╎ ╎ ╎ ╎ ╎ ╎ 13 @Sundials\src\common_interface\solve.jl:123; (::SciMLBase.var"#__init##kw")(::NamedTuple{(:abstol, :reltol, :callback), Tuple{Fl...
╎ ╎ ╎ ╎ ╎ ╎ ╎ 13 @Sundials\src\common_interface\solve.jl:400; __init(prob::ODEProblem{Vector{Float64}, Tuple{Float64, Float64}, true, Tuple{Vect...
╎ ╎ ╎ ╎ ╎ ╎ ╎ 13 @SciMLBase\src\scimlfunctions.jl:345; ODEFunction
╎ ╎ ╎ ╎ ╎ ╎ ╎ 4 ...Julia WD\phd-julia-code\Function running fisheries.jl:82; dBdT(dB::Vector{Float64}, bioS::Vector{Float64}, p::Tuple{Vector{Float64}, Float6...
1╎ ╎ ╎ ╎ ╎ ╎ ╎ 1 ...Julia WD\phd-julia-code\Function running fisheries.jl:6; FF(num_nutrient::Int64, bm::Vector{Float64}, foodWeb::Matrix{Float64}, pred::Int6...
╎ ╎ ╎ ╎ ╎ ╎ ╎ 3 ...Julia WD\phd-julia-code\Function running fisheries.jl:11; FF(num_nutrient::Int64, bm::Vector{Float64}, foodWeb::Matrix{Float64}, pred::Int6...
3╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ 3 @Base\math.jl:907; ^
╎ ╎ ╎ ╎ ╎ ╎ ╎ 5 ...Julia WD\phd-julia-code\Function running fisheries.jl:107; dBdT(dB::Vector{Float64}, bioS::Vector{Float64}, p::Tuple{Vector{Float64}, Float6...
╎ ╎ ╎ ╎ ╎ ╎ ╎ 5 ...Julia WD\phd-julia-code\Function running fisheries.jl:11; FF(num_nutrient::Int64, bm::Vector{Float64}, foodWeb::Matrix{Float64}, pred::Int6...
1╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ 1 @Base\float.jl:405; *
4╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ 4 @Base\math.jl:907; ^
╎ ╎ ╎ ╎ ╎ ╎ ╎ 4 ...Julia WD\phd-julia-code\Function running fisheries.jl:116; dBdT(dB::Vector{Float64}, bioS::Vector{Float64}, p::Tuple{Vector{Float64}, Float6...
╎ ╎ ╎ ╎ ╎ ╎ ╎ 4 ...Julia WD\phd-julia-code\Function running fisheries.jl:11; FF(num_nutrient::Int64, bm::Vector{Float64}, foodWeb::Matrix{Float64}, pred::Int6...
4╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ 4 @Base\math.jl:907; ^