I am searching for a more performant way to get the current stack trace. The tracing needs to be done in a central method deep in the code, which is necessary to determine specific code lines for restructuring.
So far I used the function MadExcept.CreateBugReport to return a stack trace, but this function takes up to 800 milliseconds per method call. Then I tried to use the function MadStackTrace.Stacktrace, which takes up to 40-45 milliseconds, but still takes too long.
Is there a way to get the current stack track more quickly? Maybe the stack trace can be shortened or something like that?