diff --git a/lib/app_profiler/backend/stackprof_backend.rb b/lib/app_profiler/backend/stackprof_backend.rb index ac1bfec4..82177272 100644 --- a/lib/app_profiler/backend/stackprof_backend.rb +++ b/lib/app_profiler/backend/stackprof_backend.rb @@ -39,7 +39,7 @@ def start(params = {}) clear - ::StackProf.start(**DEFAULTS, **params) + StackProf.start(**DEFAULTS, **params) rescue => error AppProfiler.logger.info( "[Profiler] failed to start the profiler error_class=#{error.class} error_message=#{error.message}" @@ -51,7 +51,7 @@ def start(params = {}) end def stop - ::StackProf.stop + StackProf.stop ensure release_run_lock end @@ -70,13 +70,13 @@ def results end def running? - ::StackProf.running? + StackProf.running? end private def backend_results - ::StackProf.results + StackProf.results end # Clears the previous profiling session.