We have done this because in most cases, we only need a couple of metrics and thus it is
not useful to spend a tone of time computing all metrics.
Currently, there is nothing out of the box that would force the computation of all
metrics. However, it should not be hard to do. For example:
model allClasses do: [:eachEntity |
eachEntity mooseDescription allPrimitiveAttributes do: [:eachProperty |
eachEntity mmGetProperty: eachProperty ] ]
Doru
On 21 Nov 2011, at 20:58, Alexandre Bergel wrote:
Hi!
Metrics for smalltalk code are lazy computed. It is only when you send
#numberOfLinesOfCode to a class or a method that the value is actually computed from the
code present in the image.
The current schema is not really optimal when loading multiple versions.
The problem we are facing is that we need to manually call the metric methods after each
version is loaded.
Is there a way to force the metrics to be computed while importing code?
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"Some battles are better lost than fought."