Table of Contents

Class CompilationStats

Namespace
AiDotNet.JitCompiler
Assembly
AiDotNet.dll

Statistics about a compilation operation.

public class CompilationStats
Inheritance
CompilationStats
Inherited Members

Remarks

For Beginners: Information about what happened during compilation.

Tells you:

  • How many operations were optimized away
  • What optimizations were applied
  • How long compilation took
  • Whether the result came from cache

Properties

CacheHit

Gets or sets a value indicating whether the compiled function came from cache.

public bool CacheHit { get; set; }

Property Value

bool

CompilationTime

Gets or sets the time taken to compile the graph.

public TimeSpan CompilationTime { get; set; }

Property Value

TimeSpan

OperationsEliminated

Gets the reduction in operation count from optimization.

public int OperationsEliminated { get; }

Property Value

int

OptimizationPercentage

Gets the percentage reduction in operation count.

public double OptimizationPercentage { get; }

Property Value

double

OptimizationsApplied

Gets or sets the list of optimizations that were applied.

public List<string> OptimizationsApplied { get; set; }

Property Value

List<string>

OptimizedOperationCount

Gets or sets the number of operations after optimization.

public int OptimizedOperationCount { get; set; }

Property Value

int

OriginalOperationCount

Gets or sets the number of operations in the original graph.

public int OriginalOperationCount { get; set; }

Property Value

int

Methods

ToString()

Gets a string representation of the compilation statistics.

public override string ToString()

Returns

string