mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
fixing unnecessary allocations when debug mode disabled
This commit is contained in:
parent
aecaa73ad0
commit
9837fff97f
@ -60,9 +60,9 @@ namespace UnityAtoms
|
||||
}
|
||||
}
|
||||
|
||||
public static StackTraceEntry Create(object obj, int skipFrames = 0) => new StackTraceEntry(new StackTrace(skipFrames), obj);
|
||||
public static StackTraceEntry Create(object obj, int skipFrames = 0) => AtomPreferences.IsDebugModeEnabled ? new StackTraceEntry(new StackTrace(skipFrames), obj) : null;
|
||||
|
||||
public static StackTraceEntry Create(int skipFrames = 0) => new StackTraceEntry(new StackTrace(skipFrames));
|
||||
public static StackTraceEntry Create(int skipFrames = 0) => AtomPreferences.IsDebugModeEnabled ? new StackTraceEntry(new StackTrace(skipFrames)) : null;
|
||||
|
||||
|
||||
public override bool Equals(object obj) => Equals(obj as StackTraceEntry);
|
||||
|
Loading…
Reference in New Issue
Block a user