Move backtrace cleaner from Profiler into its own class
We call `GitLab::Profiler.clean_backtrace` in a lot of places where we aren't actually profiling. It makes sense to break this out into its own class method. This change also reduces memory usage and speeds up the backtrace cleaner since the regexp is computed once at load time. Closes https://gitlab.com/gitlab-org/gitlab/issues/36645
Showing
Please register or sign in to comment