eclipse / epsilon

Epsilon is a family of Java-based scripting languages for automating common model-based software engineering tasks, such as code generation, model-to-model transformation and model validation, that work out of the box with EMF (including Xtext and Sirius), UML (including Cameo/MagicDraw), Simulink, XML and other types of models.
https://eclipse.org/epsilon
Eclipse Public License 2.0
55 stars 11 forks source link

"Rules" section in profiler empty for ETL scripts #51

Open agarciadom opened 9 months ago

agarciadom commented 9 months ago

I tried using the profiler on an ETL script through the Java API, and found that the rule information was not being populated as expected. I could see the various profile targets in the tree, but noticed that no TransformationRules were being listed, only their guards and StatementBlocks.

Thinking it may be my use of the Java API, I tried running the example Flowchart2HTML transformation via the usual Eclipse launch configurations with profiling on (including the fine-grained profiling), and found it left the Rules tab empty as well.

I have found one possible fix, but I'm not sure the approach I followed is the best one in terms of design. I'll share it via a PR.