Class: Sentry::Vernier::Output

Inherits:
Object
  • Object
show all
Includes:
Profiler::Helpers
Defined in:
lib/sentry/vernier/output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Profiler::Helpers

#compute_filename, #in_app?, #split_module

Constructor Details

#initialize(profile, project_root:, in_app_pattern:, app_dirs_pattern:) ⇒ Output

Returns a new instance of Output.



13
14
15
16
17
18
# File 'lib/sentry/vernier/output.rb', line 13

def initialize(profile, project_root:, in_app_pattern:, app_dirs_pattern:)
  @profile = profile
  @project_root = project_root
  @in_app_pattern = in_app_pattern
  @app_dirs_pattern = app_dirs_pattern
end

Instance Attribute Details

#profileObject (readonly)

Returns the value of attribute profile.



11
12
13
# File 'lib/sentry/vernier/output.rb', line 11

def profile
  @profile
end

Instance Method Details

#to_hObject



20
21
22
23
24
25
26
27
# File 'lib/sentry/vernier/output.rb', line 20

def to_h
  @to_h ||= {
    frames: frames,
    stacks: stacks,
    samples: samples,
    thread_metadata: 
  }
end