Skip to content

Commit

Permalink
Avoid disambiguating Stackprof module
Browse files Browse the repository at this point in the history
  • Loading branch information
dalehamel committed Mar 6, 2024
1 parent c7cf0e9 commit 7bb20b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/app_profiler/backend/stackprof_backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -51,7 +51,7 @@ def start(params = {})
end

def stop
::StackProf.stop
StackProf.stop
ensure
release_run_lock
end
Expand All @@ -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.
Expand Down

0 comments on commit 7bb20b4

Please sign in to comment.