[Uml-devel] Performances analysis !
hassan kouch
hkouch at hotmail.com
Thu Dec 14 20:09:16 UTC 2006
Hello everyone,
Please find below our performances analysis report.
We studied the performances from all the diagrams proposed by umbrello. We
tested them in extreme cases and limits, which we had estimated with the
help of our UML/OCL Professor, from our university:
Class diagram: 10..200
Sequence diagram: 10..40
Collaboration diagram: 10..40
UseCase diagram: 1..40
State diagram: 10..300
Activity diagram: 10..200
Component diagram: 10..40
Deployment diagram: 2..20
Entity relationship diagram: 10..200
After creating a diagram for each case, we carried out tests on displacement
of objects and the undo/redo for each one of them.
1) Study of the performances during an object displacement:
We have noticed that during a displacement, for any diagram or any moved
object, the functions which take the most time, are mainly:
-Q3Canvas::changeBounds and Q3Canvas::chunck : changeBounds and chunk which
are often called by methods not belonging to Umbrello.
-XdrawPoints : This method is called by the method drawBackground of
UMLViewCanvas class via a QPainter becoming a parameter. DrawBackground
allows to display the background squaring. The user can choose to display it
or not. In the first case, it will be displayed with each displacement and
undo/redo. The algorithm of this method consists in sweeping the window of
the diagram in length and width and posting a squaring point each time.
2) Study of the performances on the Undo/redo:
It was noted that for each UNDO and each REDO done, Umbrello calls the
methods saveToXmi and loadToXmi. When umbrello calls loadToXmi, it will
extract information from a temporary file like opening an existing XMI.
Moreover we think that the problems of performances, noted when a user tries
to move a figure, are related to undo/redo. As, before each displacement it
is supposed to prepare the undo so it must be there a saveToXmi, which would
explain the slow reaction time on the large models
Thank you for your attention.
Best regards,
--
_________________________________________________________________
Windows Live Messenger sur i-mode : dialoguez avec vos amis depuis votre
mobile comme sur PC ! http://mobile.live.fr/messenger/bouygues/
More information about the umbrello-devel
mailing list