NASA-AMMOS / aerie

A software framework for modeling spacecraft.
https://nasa-ammos.github.io/aerie-docs/
MIT License
73 stars 19 forks source link

Add more utilities for profiling resources #1314

Closed DavidLegg closed 8 months ago

DavidLegg commented 9 months ago

Description

Adds more support for profiling resource performance, especially around mutable resources. Most importantly, it adds the static method Resource.profileAllResources(). When called before constructing the model, this method turns on profiling for virtually every resource in the model. This casts a broad net for early stages in a performance investigation, to highlight resources that are called unexpectedly frequently.

Verification

These changes have been spot-checked by hand in the streamline example model and with the SRL model. As developer-oriented debugging tools with loose requirements, I don't think automated tests are appropriate for most of the behavior here.

Documentation

Only in-line javadoc comments.

Future work

N/A