Bootstrap FIMS memory profiling benchmark scaffold (R stages, Massif runner, Codespaces debug build config) - #1
Merged
Andrea-Havron-NOAA merged 6 commits intoJul 22, 2026
Conversation
Copilot
AI
changed the title
[WIP] Initialize repository for memory profiling and benchmarking NOAA-FIMS/FIMS package
Bootstrap FIMS memory profiling benchmark scaffold (R stages, Massif runner, Codespaces debug build config)
Jul 22, 2026
| @@ -0,0 +1,20 @@ | |||
| #' Install a specific FIMS branch compiled in Debug Mode | |||
Contributor
Author
There was a problem hiding this comment.
Done in f8452dd. The script is now named R/install_FIMS_debug and all references were updated.
Andrea-Havron-NOAA
requested changes
Jul 22, 2026
Andrea-Havron-NOAA
requested changes
Jul 22, 2026
Andrea-Havron-NOAA
requested changes
Jul 22, 2026
Andrea-Havron-NOAA
approved these changes
Jul 22, 2026
Andrea-Havron-NOAA
left a comment
Contributor
There was a problem hiding this comment.
Can you squash before pushing commits?
Andrea-Havron-NOAA
marked this pull request as ready for review
July 22, 2026 21:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR initializes the repository as a repeatable benchmark harness for comparing memory behavior across
NOAA-FIMS/FIMSrefs. It adds the baseline structure, staged R benchmark entrypoints, and profiling-oriented debug build setup for Codespaces.Repository scaffold
R/for benchmark/setup helpersscripts/for profiler runnersoutputs/.gitkeepas committed output placeholder.devcontainer/for Codespaces initializationFIMS debug install entrypoint
R/setup_FIMSwithinstall_fims_debug(ref)to installNOAA-FIMS/FIMSfrom a branch/tag/SHA via source build (remotes::install_github).Staged benchmark flow (R)
R/run_benchmark.Rwith explicit stages:MakeADFun()obj$fn(),obj$gr())nlminbrun withoutsdreportnlminbrun withsdreportTMB::FreeADFun(obj),gc())Branch comparison driver
R/main.Rto run the same benchmark flow for:mainxptr-refactorMassif execution script
scripts/run_massif.shto run Valgrind Massif per ref and emit:outputs/massif_main.outoutputs/massif_xptr.outCodespaces debug symbol preservation
.devcontainer/postCreate.sh+.devcontainer/devcontainer.jsonto ensure~/.R/Makevarscontains:PKG_CXXFLAGS += -g -O0 -fno-omit-frame-pointer -fvisibility=defaultPKG_STRIP = trueDocumentation
README.mdwith setup and execution guidance for debug installs and Massif benchmark runs.Original prompt