Class OptimizationMetrics

Namespace
LogicalOptimizer
Assembly
LogicalOptimizer.Core.dll
public class OptimizationMetrics
Inheritance
OptimizationMetrics
Inherited Members

Properties

AllocatedBytes

Bytes allocated on the calling thread across the whole optimization run (measured via GetAllocatedBytesForCurrentThread()). A memory-cost signal for the call; 0 when metrics were not requested.

public long AllocatedBytes { get; set; }

Property Value

long

AppliedRules

public int AppliedRules { get; set; }

Property Value

int

CompressionRatio

public double CompressionRatio { get; }

Property Value

double

ElapsedTime

public TimeSpan ElapsedTime { get; set; }

Property Value

TimeSpan

IsImproved

public bool IsImproved { get; }

Property Value

bool

Iterations

public int Iterations { get; set; }

Property Value

int

OptimizationSteps

Convergence trace: one entry per rewrite fixpoint iteration recording the node count at that step, so callers can see how the expression converged (populated only when metrics are requested).

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

Property Value

List<string>

OptimizedNodes

public int OptimizedNodes { get; set; }

Property Value

int

OriginalNodes

public int OriginalNodes { get; set; }

Property Value

int

RuleApplicationCount

public Dictionary<string, int> RuleApplicationCount { get; set; }

Property Value

Dictionary<string, int>

Methods

AddStep(string)

public void AddStep(string step)

Parameters

step string

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.