Module: Sentry::Profiler::Helpers
- Included in:
- Sentry::Profiler, Vernier::Output
- Defined in:
- lib/sentry/profiler/helpers.rb
Instance Method Summary collapse
- #compute_filename(abs_path, in_app) ⇒ Object
- #in_app?(abs_path) ⇒ Boolean
- #split_module(name) ⇒ Object
Instance Method Details
#compute_filename(abs_path, in_app) ⇒ Object
12 13 14 |
# File 'lib/sentry/profiler/helpers.rb', line 12 def compute_filename(abs_path, in_app) @filename_cache.compute_filename(abs_path, in_app, true) end |
#in_app?(abs_path) ⇒ Boolean
8 9 10 |
# File 'lib/sentry/profiler/helpers.rb', line 8 def in_app?(abs_path) abs_path.match?(@in_app_pattern) end |
#split_module(name) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/sentry/profiler/helpers.rb', line 16 def split_module(name) # last module plus class/instance method i = name.rindex("::") function = i ? name[(i + 2)..-1] : name mod = i ? name[0...i] : nil [function, mod] end |