Documentation Language: Swift

Structure

ATLExecutionStatistics

Statistics tracking ATL transformation execution performance and behaviour. Comprehensive execution statistics for ATL transformation monitoring.

struct ATLExecutionStatistics

Overview

The ATLExecutionStatistics structure provides detailed metrics about transformation execution, including performance timing, memory usage, rule invocation patterns, and element processing metrics for debugging and optimisation purposes.

Topics

Initializers

?
init()

Creates new execution statistics with default values.

Instance Properties

V
calledRulesExecuted

The number of called rules executed.

V
completedPhases

Execution phases completed

V
currentPhase

Current execution phase

V
elementsCreated

The number of target elements created.

V
elementsProcessed

The number of source elements processed.

V
endTime

Execution end time

V
executionId

Unique identifier for this execution session

V
executionTime

The total execution time for the transformation.

V
helperExecutionTimes

Helper execution times for performance analysis.

V
helperInvocations

The number of helper functions invoked.

V
lastError

The last error encountered during execution, if any.

V
lazyBindingsResolved

The number of lazy bindings resolved.

V
navigationOperations

The number of navigation operations performed.

V
peakMemoryUsage

Peak memory usage during execution (estimated).

V
performanceMetrics

Performance metrics

V
phaseExecutionTimes

Phase execution times.

V
ruleExecutionTimes

Rule execution times for performance analysis.

V
rulesExecuted

The number of matched rules executed.

V
startTime

Execution start time

V
successful

Whether the transformation completed successfully.

V
traceLinksCreated

The number of trace links recorded.

V
warnings

Warnings accumulated during execution

Instance Methods

F
addWarning(_:)

Adds a warning message.

F
beginExecution(id:)

Begins execution with the specified identifier.

F
beginPhase(_:)

Begins a new execution phase.

F
completeExecution(success:error:)

Completes execution with success status and optional error.

F
detailedSummary()

Provides detailed performance breakdown.

F
efficiency()

Returns execution efficiency metrics.

F
endPhase(_:)

Ends the current execution phase.

F
recordHelperInvocation(_:duration:)

Records helper invocation time.

F
recordNavigation()

Records a navigation operation.

F
recordRuleExecution(_:duration:)

Records rule execution time.

F
reset()

Resets all statistics to their initial values.

F
summary()

Provides a formatted summary of execution statistics.

F
updateMemoryUsage(_:)

Updates peak memory usage estimate.

Relationships

Conforms To

See Also

Transformation Execution

C
ATLVirtualMachine

Actor responsible for executing ATL transformations.

C
ATLExecutionContext

Execution context for ATL transformations, coordinating between ATL constructs and the ECore execution framework.