class Sentry::Vernier::Profiler

def stop

def stop
  return unless @sampled
  return unless @started
  @result = ::Vernier.stop_profile
  @started = false
  log("Stopped")
rescue RuntimeError => e
  if e.message.include?("Profile not started")
    log("Not stopped since not started")
  else
    log("Failed to stop Vernier: #{e.message}")
  end
end