Class: Sentry::Vernier::Output
- Inherits:
-
Object
- Object
- Sentry::Vernier::Output
- Includes:
- Profiler::Helpers
- Defined in:
- lib/sentry/vernier/output.rb
Instance Attribute Summary collapse
-
#profile ⇒ Object
readonly
Returns the value of attribute profile.
Instance Method Summary collapse
-
#initialize(profile, project_root:, in_app_pattern:, app_dirs_pattern:) ⇒ Output
constructor
A new instance of Output.
- #to_h ⇒ Object
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
#profile ⇒ Object (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_h ⇒ Object
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 |