orca icon indicating copy to clipboard operation
orca copied to clipboard

Brainstorming, report cache statistics.

Open Eh2406 opened this issue 7 years ago • 0 comments

I was just thinking whether it made sense for us to be cashing all the things, as we do now. In order to answer that I'd want to know for each thing orca is keeping track of:

  1. How many times did orca generate this thing?
  2. How many times did orca use a cached copy of this thing?
  3. How much time was spent in generating this thing?
  4. How much ram was used to hang on to the cached copy of this thing?

Things I could diagnose with this data from after a full model run include:

  • Things that are never used. Consider removing from the code.
  • Things that are never retrieved from the cache. Consider not caching that thing.
  • Things that are fast to compute. Consider not caching that thing.
  • Some of Why does a model run use so much ram?
  • Some of Why does a model run take so long?

Eh2406 avatar Jan 24 '18 16:01 Eh2406