Module: AppProfiler::Sampler

Defined in:
lib/app_profiler/sampler.rb,
lib/app_profiler/sampler/config.rb,
lib/app_profiler/sampler/vernier_config.rb,
lib/app_profiler/sampler/stackprof_config.rb

Defined Under Namespace

Classes: Config, StackprofConfig, VernierConfig

Class Method Summary collapse

Class Method Details

.profile_params(request, config) ⇒ Object



7
8
9
# File 'lib/app_profiler/sampler.rb', line 7

def profile_params(request, config)
  profile_params_for(request.path, config)
end

.profile_params_for(target, config) ⇒ Object



11
12
13
14
15
# File 'lib/app_profiler/sampler.rb', line 11

def profile_params_for(target, config)
  return unless sample?(config, target)

  get_profile_params(config)
end