META-INF.consoleplugin.modelstatistics.templates.plots.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of io.neba.neba-core Show documentation
Show all versions of io.neba.neba-core Show documentation
Contains the entire NEBA core implementation, i.e. the framework that interprets the
NEBA API annotations and provides implementations for the service and lifecycle callback
interfaces provided in the NEBA API. This package must not export anything as
its implementation details are entirely private.
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). The visualization scales are relative, i.e. each axis is scaled with regard to the highest value found in all models.
Each graph exhibits the following dimensions;
Instantiations The number of times the model was instantiated
NEBA 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. A value of 0 indicates that the model is never adapted more than once from the same resource during a request.
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