Class: Datadog::Profiling::Tasks::Exec
- Inherits:
-
Object
- Object
- Datadog::Profiling::Tasks::Exec
- Defined in:
- lib/datadog/profiling/tasks/exec.rb
Overview
Wraps command with Datadog profiling
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
: untyped.
Instance Method Summary collapse
-
#initialize(args) ⇒ Exec
constructor
: (untyped) -> void.
-
#rubyopts ⇒ Object
: () -> ::Array.
-
#run ⇒ Object
: () -> untyped.
Constructor Details
#initialize(args) ⇒ Exec
: (untyped) -> void
11 12 13 |
# File 'lib/datadog/profiling/tasks/exec.rb', line 11 def initialize(args) @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
: untyped
8 9 10 |
# File 'lib/datadog/profiling/tasks/exec.rb', line 8 def args @args end |
Instance Method Details
#rubyopts ⇒ Object
: () -> ::Array
22 23 24 25 26 |
# File 'lib/datadog/profiling/tasks/exec.rb', line 22 def rubyopts [ "-rdatadog/profiling/preload", ] end |
#run ⇒ Object
: () -> untyped
16 17 18 19 |
# File 'lib/datadog/profiling/tasks/exec.rb', line 16 def run set_rubyopt! exec_with_error_handling(args) end |