mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-10-25 05:02:14 +00:00
Tidy total cycles calculations
This commit is contained in:
1 parent
fcc97bea7b
commit
95fbfb3ccd
1 file changed
+2
-1
+2
-1
@@ -64,12 +64,14 @@
|
||||
{
|
||||
get
|
||||
{
|
||||
Debug.Assert(this.totalCyclesValid);
|
||||
return this.totalCycles;
|
||||
}
|
||||
private set
|
||||
{
|
||||
Debug.Assert(!this.totalCyclesValid);
|
||||
this.totalCycles = value;
|
||||
this.totalCyclesValid = true;
|
||||
}
|
||||
}
|
||||
public void Generate()
|
||||
@@ -88,7 +90,6 @@
|
||||
private void EmitProfileInformation()
|
||||
{
|
||||
this.TotalCycles = this.instructionCycles.Sum();
|
||||
this.totalCyclesValid = true;
|
||||
|
||||
this.EmitProfileLineInformation();
|
||||
this.EmitProfileScopeInformation();
|
||||
|
||||
Reference in new issue
Block a user