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.
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