diff --git a/SharpLib.csproj b/SharpLib.csproj index 471b05e..915ccf5 100644 --- a/SharpLib.csproj +++ b/SharpLib.csproj @@ -22,7 +22,7 @@ - + diff --git a/imm/FSM.cs b/imm/FSM.cs index d392630..0afd7d5 100644 --- a/imm/FSM.cs +++ b/imm/FSM.cs @@ -54,7 +54,7 @@ public record class FSM : imm.Recorded, Imm [CallerMemberName] string memberName = "", [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0, - [CallerArgumentExpression("fn")] + [CallerArgumentExpression("newState")] string expression = default ) { diff --git a/imm/Imm.cs b/imm/Imm.cs index 5a60dfc..bb75fe8 100644 --- a/imm/Imm.cs +++ b/imm/Imm.cs @@ -340,7 +340,7 @@ public record class Timed : Recorded, imm.Imm [CallerMemberName] string dbgName = "", [CallerFilePath] string dbgPath = "", [CallerLineNumber] int dbgLine = 0, - [CallerArgumentExpression("next")] + [CallerArgumentExpression("fn")] string dbgExp = "" ) where U : T @@ -358,7 +358,7 @@ public record class Timed : Recorded, imm.Imm ) => ProcessWork( fn, reason, dbgName, dbgPath, dbgLine, dbgExp ); - virtual public T ProcessWork( Func fn, + override public T ProcessWork( Func fn, string reason, string dbgName, string dbgPath, diff --git a/logging/Log.cs b/logging/Log.cs index 08ad3ab..0365fa8 100644 --- a/logging/Log.cs +++ b/logging/Log.cs @@ -45,7 +45,7 @@ public record struct Value( T _val, string _exp = "" ) } static public Value Get( U v, - [CallerArgumentExpression("fn")] + [CallerArgumentExpression("v")] string dbgExp = "" ) { diff --git a/prof/AddressStack.cs b/prof/AddressStack.cs index c766c9f..3face11 100644 --- a/prof/AddressStack.cs +++ b/prof/AddressStack.cs @@ -31,7 +31,9 @@ namespace Tracing return true; } - public IReadOnlyList Stack => _stack; + public override int GetHashCode() => _stack.GetHashCode(); + + public IReadOnlyList Stack => _stack; public void AddFrame(ulong address) {