You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: spec_helper.rb
    path of file: ./repos/dd-trace-rb/spec/datadog/profiling
    
    the code of the file until where you have to start completion: require 'datadog/profiling'
if Datadog::Profiling.supported?
  require 'datadog/profiling/pprof/pprof_pb'
  require 'extlz4'
end

module ProfileHelpers
  Sample = Struct.new(:locations, :values, :labels) do |_sample_class| # r
    
  def skip_if_profiling_not_supported(testcase)
    testcase.skip('Profiling is not supported on JRuby') if PlatformHelpers.jruby?
    testcase.skip('Profiling is not supported on TruffleRuby') if PlatformHelpers.truffleruby?
    testcase.skip('Profiling is not supported on Ruby 2.1/2.2') if RUBY_VERSION.start_with?('2.1.', '2.2.')

    # Profiling is not officially supported on macOS due to missing libdatadog binaries,
    # but it's still useful to allow it to be enabled for development.
    if PlatformHelpers.mac? && ENV['DD_PROFILING_MACOS_TESTING'] != 'true'
      testcase.skip(
        'Profiling is not supported on macOS. If you still want to run these specs, you can use ' \
        'DD_PROFILING_MACOS_TESTING=true to override this check.'
      )
    end