Skip to content

Structured textual output for compilation traces and compilation statistics #11837

@antonykamp

Description

@antonykamp

Feature request

Please include the following information:

Is your feature request related to a problem? Please describe.

We have developed a tool to compare compilation traces and statistics for different versions of Truffle language implementations. Currently, the compilation trace log and statistics are unstructured (e.g., XML, JSON). We used complex regex statements to extract the data.

Describe the solution you'd like.

Please provide an additional option to mx to export the compilation traces and statistics in a structured textual way (xml, json, ...).

Describe who do you think will benefit the most.

Truffle language developer, who wants to

  • process compilation traces or compilation statistics automatically
  • compare different compilation traces or statistics

Describe alternatives you've considered.

Alternatively, we can maintain a stable format for the compilation traces and statistics. This allows us to develop a tool that converts the unstructured textual output into a structured format.

Additional context.

This idea is part of the future work from the master project 2025 at the Hasso Plattner Instute Potsdam Software Architecture Group.
Participants: @Olliwehr @antonykamp
Supervisor: @marceltaeumel @JensLincke @fniephaus @timfel

Tool to compare compilation logs and statistics: https://github.com/Olliwehr/LCTLCT

Express whether you'd like to help contributing this feature

Yes

Metadata

Metadata

Labels

featuretoolsRelating to Truffle Tools (CPUSampler, Coverage tool, etc)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions