From 7f3949e8b991ffdbb92c22062373c838536d0148 Mon Sep 17 00:00:00 2001 From: Daniel Vedder <daniel.vedder@idiv.de> Date: Mon, 29 May 2023 00:19:23 +0200 Subject: [PATCH] Added script for runtime profiling closes #38 --- .gitignore | 3 ++- Makefile | 7 ++++++- README.md | 1 + docs/src/index.md | 6 ++++-- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 9427300..368f40d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ TODO.md docs/planning -*results*/ \ No newline at end of file +*results*/ +profile*txt \ No newline at end of file diff --git a/Makefile b/Makefile index 0683312..3de32b7 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SHELL = /bin/bash .PHONY: run test docs release install run: - # running example simulation + # run an example simulation if [ -d "example_results" ]; then rm -r example_results; fi ./run.jl -o example_results src/analysis/analyse_nature.R example_results @@ -19,6 +19,11 @@ docs: sed -i -e "s/\*Last updated:.*/\*Last updated: ${commit}\*/" docs/src/index.md cd docs; julia builddocs.jl +profile: + # run and profile an example simulation + if [ -d "example_results" ]; then rm -r example_results; fi + ./runprofile.jl -o example_results + container: echo "Not yet implemented (#43)" diff --git a/README.md b/README.md index 59351c5..7d5f457 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ If you are on Linux or MacOS, you can also use `make`: ``` > make run # run a simulation with default values > make test # run the test suite +> make profile # run and profile a default simulation > make docs # build the documentation > make release # create a release ``` diff --git a/docs/src/index.md b/docs/src/index.md index 3a783f5..f1c9c33 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -51,8 +51,6 @@ of parameters): [core] configfile = "src/parameters.toml" # location of the configuration file -landcovermap = "data/landcover_jena.tif" # location of the landcover map -farmfieldsmap = "data/fields_jena.tif" # location of the field geometry map outdir = "results" # location and name of the output folder overwrite = "ask" # overwrite the output directory? (true/false/"ask") loglevel = "debug" # verbosity level: "debug", "info", "warn" @@ -62,6 +60,10 @@ seed = 2 # seed value for the RNG (0 -> random value) startdate = 2022-01-01 enddate = 2022-12-31 +[world] +landcovermap = "data/landcover_jena.tif" # location of the landcover map +farmfieldsmap = "data/fields_jena.tif" # location of the field geometry map + [farm] farmmodel = "FieldManager" # which version of the farm model to use (not yet implemented) -- GitLab