mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-04-22 04:16:47 +00:00
Tidy total cycles calculations
This commit is contained in:
+2
-1
@@ -64,12 +64,14 @@
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
Debug.Assert(this.totalCyclesValid);
|
||||||
return this.totalCycles;
|
return this.totalCycles;
|
||||||
}
|
}
|
||||||
private set
|
private set
|
||||||
{
|
{
|
||||||
Debug.Assert(!this.totalCyclesValid);
|
Debug.Assert(!this.totalCyclesValid);
|
||||||
this.totalCycles = value;
|
this.totalCycles = value;
|
||||||
|
this.totalCyclesValid = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public void Generate()
|
public void Generate()
|
||||||
@@ -88,7 +90,6 @@
|
|||||||
private void EmitProfileInformation()
|
private void EmitProfileInformation()
|
||||||
{
|
{
|
||||||
this.TotalCycles = this.instructionCycles.Sum();
|
this.TotalCycles = this.instructionCycles.Sum();
|
||||||
this.totalCyclesValid = true;
|
|
||||||
|
|
||||||
this.EmitProfileLineInformation();
|
this.EmitProfileLineInformation();
|
||||||
this.EmitProfileScopeInformation();
|
this.EmitProfileScopeInformation();
|
||||||
|
|||||||
Reference in New Issue
Block a user