Changeset 4137 for branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Tracing/3.3/MethodCallPatternConverter.cs
- Timestamp:
- 08/03/10 13:42:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Tracing/3.3/MethodCallPatternConverter.cs
r4136 r4137 11 11 StackTrace callStack = new StackTrace(); 12 12 int i = 1; 13 while (i < =callStack.FrameCount && !callStack.GetFrame(i).GetMethod().DeclaringType.FullName.StartsWith("HeuristicLab.Hive")) {13 while (i < callStack.FrameCount && !callStack.GetFrame(i).GetMethod().DeclaringType.FullName.StartsWith("HeuristicLab.Hive")) { 14 14 i++; 15 15 } 16 StackFrame stack = new StackFrame(i); 17 writer.Write(stack.GetMethod().Name); 16 StackFrame stack = new StackFrame(i); 17 var method = stack.GetMethod(); 18 if (method != null) { 19 writer.Write(stack.GetMethod().Name); 20 } 18 21 } 19 22 }
Note: See TracChangeset
for help on using the changeset viewer.