class Sentry::Vernier::Profiler

def start

def start
  return unless @sampled
  return if @started
  @started = ::Vernier.start_profile
  log("Started")
  @started
rescue RuntimeError => e
  # TODO: once Vernier raises something more dedicated, we should catch that instead
  if e.message.include?("Profile already started")
    log("Not started since running elsewhere")
  else
    log("Failed to start: #{e.message}")
  end
end