Writing expressions
An expression filters the list of resource models. It allows finding models with specific performance characteristics. For instance,
mappings > instantiations
finds models causing more than one subsequent resource to model mapping when instantiated. The query
averageMappingDuration > average(averageMappingDuration)
finds resource models who's individual average mapping duration is higher than the average mapping duration of all resource models. All properties, except when enclosed in entire(...) or average(...), apply
to the
individual model. For instance,
mappingDurationMedian < averageMappingDuration translates to "find models who's mapping duration median is less than it's average mapping duration".
One can also employ sub clauses and arithmetic expressions. For instance,
totalMappingDuration > entire(totalMappingDuration) * 0.05 finds models that are responsible for more than 5% of the entire mapping time.
The model visualization
The models are ordered by their total mapping time (totalMappingDuration). Each graph exhibits the following dimensions;
Instantiations | The number of times the model was instantiated |
Cache hits | The number of times the model was loaded from a resource model cache, for instance the default NEBA request-scoped resource model cache. |
Subsequent mappings | The total number of resource to model mappings initiated by a resource model, i.e. the subsequently used resource models. |
Ø duration | The average duration of one resource to model mapping for this type |
median | The median duration of one resource to model mapping for this type |
Lazy fields | The number of lazy fields (Optional fields or lazy-loading collections) of this resource model |
Greedy fields | The number of non-lazy fields (neither Optional nor lazy-loading collections) of this resource model |
Total time | The total time spent mapping this model |