Extended Abstract of Performance Analysis and Prediction of Model Transformation

04/19/2020 ∙ by Vijayshree Vijayshree, et al. ∙ University of Stuttgart 0

In the software development process, model transformation is increasingly assimilated. However, systems being developed with model transformation sometimes grow in size and become complex. Meanwhile, the performance of model transformation tends to decrease. Hence, performance is an important quality of model transformation. According to current research model transformation performance focuses on optimising the engines internally. However, there exists no research activities to support transformation engineer to identify performance bottleneck in the transformation rules and hence, to predict the overall performance. In this paper we vision our aim at providing an approach of monitoring and profiling to identify the root cause of performance issues in the transformation rules and to predict the performance of model transformation. This will enable software engineers to systematically identify performance issues as well as predict the performance of model transformation.

READ FULL TEXT VIEW PDF
POST COMMENT

Comments

There are no comments yet.

Authors

page 1

page 2

This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

1. Introduction

Nowadays model transformation techniques are a popular technique within Model-Driven Engineering (MDE). Model transformations enable the generation of new models, realizing changes on individual models, and the synchronization between models. In the model transformations there exist various transforming languages, our focus is on Query View Transformation Operational (QVTo).

However, a system being developed with model transformations can grow in size and can become complex. For example, in an automotive domain, an AUTOSAR model of a large electronic control unit (ECU) for modern cars has over 170.000 model elements. In such cases, the execution of badly performing model transformations can take up to hours. Hence, performance is an important quality attribute of model transformations, e.g., execution time, memory usage. The existing technique(Burmester et al., 2005) to identify and visualize the root cause of low performing transformation rules are not addressed properly, meanwhile, performance optimization is limited only to the transformation engine. Hence, model transformation rules are considered to be fixed and unchangeable. Unfortunately, transformation engineers have no insights about how long the transformation takes place and also to predict the performance.

To the best of our knowledge, there exists no research which makes analyzes of the transformation rules and presents to the transformation engineers.

Therefore it is our vision to provide an approach towards performance engineering of model transformation. Hence, this approach will enable us to systematically monitor and visualize causes for performance issues as well as predict the performance of model transformations.

We will demonstrate and identify the root cause of low performing QVTo rules with the help of three different phases. Firstly, in the monitoring framework, we measure the execution time of each QVTo transformation rules. Secondly, the profiler will graphically visualize the results. Finally, we will demonstrate to predict the overall execution time of QVTo transformations with the data stored in the database.

2. Related Work

We extensively focus on state of the art closely related to optimization of the performance of model transformation engine.

A class of approaches (Burmester et al., 2005) analyzes model transformations and compute worst-case execution time upon optimal search order of the story pattern elements. Also, another approache (Tichy et al., 2013) of the Henshin interpreter, considers models to execute the model transformations and thus address the bad smells which affects the performance of model transformation.

Amstel (van Amstel et al., 2010) investigates the factors such as size and complexity of the input models affecting the performance of model transformations. The author has compared different languages and systematically analyzed the influence of extracted metric value on performance of model transformations.

Piers (Piers, 2010) provides a way to detect performance issues on a ATL transformation by a detailed analysis of the execution. An execution profile stores information about the execution time, the memory used, etc of the model transformation.

Becker (Becker et al., 2008) made analysis performance and prediction, by generating prototypes from models, which in turn generate code skeleton or require detailed models for the prototype.

Groner (Groner et al., 2018) provides possible visualization and refactoring methods to improve the performance of model transformation in a declarative way.

Hence, these approaches show a significant performance improvement by refactoring the engine of the model transformations. On the other hand lacks the measurements and refactoring of transformation rules. Hence, in this paper, we provide an approach for supporting transformation engineers in identifying the root causes. Complementary helping engineers improve the transformation rules by themselves, which leads to the performance gain.

3. Proposed Approach

In the proposed approach we will contribute towards improving the performance of model transformation in an imperative way. Fig. 1 explains the three phases of our approach namely Monitoring, Profiling, and Prediction. To generate a large test set of input instance models we use VIATRA solver (Semeráth et al., 2018). Thus, the generated instances are then transformed into the respected output model with the help of QVTo rules and run by the QVTo engine. During the execution we using the Kieker monitoring framework (Van Hoorn et al., 2012) to gather all the necessary operational profiles (van Amstel et al., 2010) and place them in the database. The data from the database are visualized to identify the performance bottlenecks. In turn, the data from the database is used to predict the performance before the actual transformations.

Figure 1. Proposed Approach

Monitoring WP1: To analyze the performance of transformations, engineers need to learn about the operational profile (van Amstel et al., 2010) of the model transformations. The operational profile includes resource demands like execution times, rule evaluations, time spent in a model I/O. To measure the operational profile, we will extend the QVTo engine by injecting pointcuts of aspect-oriented programming (Kiczales et al., 1997) to the rules, whenever the engine executes these rules, Kieker monitoring API (Van Hoorn et al., 2012) is executed, to fetch operational profiles and measure them. Once the operational profile is measured they are stored in the database for further analysis and prediction.

Profiling WP2: The WP1 will provide the raw and too detailed data about the operational profile of the model transformations. The raw data contains the execution time of each transformation rule, overall execution time. This detailed data will not directly help the transformation engineer in understanding where exactly lies the performance issues. Hence, this raw-data, in turn, needs to be visualized to support the engineer in identifying the root cause of badly performing transformation rules. Therefore, we are designing the profiler which presents the analyzed raw-data to the transformation engineer. A performance decline can be the result of changes in the model transformation or by changes in the meta-model or the operational profile. With the help of the developed profiler, we can easily identify and rank a list of possible causes for the performance decline by using monitoring data.

Prediction WP3: To support the engineer in predicting the performance, we need to develop a prediction framework. The developed framework will help to predict the performance change of model transformations. To predict the performance of a model without having a prior reference model or historic operational profile data of previously transformed model is always a difficult job and performance prediction of a model may not be accurate. To generate the different instance reference model we need to scale the input model either automatically or manually. However, scaling manually is always error-prone and tedious job while we need to be very specific about the dependencies of the scaling elements. Hence, to overcome such a problem we are reusing the existing VIATRA (Semeráth et al., 2018) tool to automatically generate the instances of the input model, each instance is different. Then each instance model is transformed to obtain an output model. Subsequently, the operational profile (e.g., execution time and memory usage) of each instance model is obtained and thus, data are stored in the database. Eventually, the complete setup of generating instances, transforming the model and measurements of the operational profile is run in a continuous integration environment at a defined interval of time, which in turn serves as the reference data and thus, helps in performance prediction of transformations.

4. Conclusion

In this paper, we demonstrated an approach to identify the root cause of low performing QVTo rules. We presented the three phases of our approach namely monitoring, profiling, and prediction. In the monitoring phase, we will systematically monitor all the operational profile with the help of aspect- oriented pointcuts and kieker framework. In the profiling phase, we visualize the monitored operational profile of the monitoring phase and support the transformation engineer to identify root cause of badly performing transformation rules. With the use of VIATRA solver, we will automatically generate instances of input model and perform model transformations to measure the operational profiles and store them in database. This particular monitored data will be used for the prediction purposes.

5. Acknowledgement

This work was funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation)- BE 4796-3-1.

References

  • S. Becker, T. Dencker, and J. Happe (2008) Model-driven generation of performance prototypes. In SPEC International Performance Evaluation Workshop, pp. 79–98. Cited by: §2.
  • S. Burmester, H. Giese, A. Seibel, and M. Tichy (2005) Worst-case execution time optimization of story patterns for hard real-time systems. In Proc. of the 3rd International Fujaba Days, pp. 71–78. Cited by: §1, §2.
  • R. Groner, M. Tichy, and S. Becker (2018) Towards performance engineering of model transformation. In Companion of the 2018 ACM/SPEC International Conference on Performance Engineering, pp. 33–36. Cited by: §2.
  • G. Kiczales, J. Lamping, A. Mendhekar, C. Maeda, C. Lopes, J. Loingtier, and J. Irwin (1997) Aspect-oriented programming. In European conference on object-oriented programming, pp. 220–242. Cited by: §3.
  • W. Piers (2010) ATL 3.1–industrialization improvements. In Proceedings of the 2nd International Workshop on Model Transformation with ATL, Cited by: §2.
  • O. Semeráth, A. S. Nagy, and D. Varró (2018) A graph solver for the automated generation of consistent domain-specific models. In Proceedings of the 40th International Conference on Software Engineering, pp. 969–980. Cited by: §3, §3.
  • M. Tichy, C. Krause, and G. Liebel (2013) Detecting performance bad smells for henshin model transformations.. Amt@ models 1077. Cited by: §2.
  • M. F. van Amstel, M. G. van den Brand, and P. H. Nguyen (2010) Metrics for model transformations. In Proceedings of the Ninth Belgian-Netherlands Software Evolution Workshop (BENEVOL 2010), Lille, France (December 2010), Cited by: §2, §3, §3.
  • A. Van Hoorn, J. Waller, and W. Hasselbring (2012) Kieker: a framework for application performance monitoring and dynamic software analysis. In Proceedings of the 3rd ACM/SPEC International Conference on Performance Engineering, pp. 247–248. Cited by: §3, §3.