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
Returns the value of attribute args.
Instance Method Summary collapse
-
#initialize(args) ⇒ Exec
constructor
A new instance of Exec.
- #rubyopts ⇒ Object
- #run ⇒ Object
Constructor Details
#initialize(args) ⇒ Exec
Returns a new instance of Exec.
8 9 10 |
# File 'lib/datadog/profiling/tasks/exec.rb', line 8 def initialize(args) @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
6 7 8 |
# File 'lib/datadog/profiling/tasks/exec.rb', line 6 def args @args end |
Instance Method Details
#rubyopts ⇒ Object
17 18 19 20 21 |
# File 'lib/datadog/profiling/tasks/exec.rb', line 17 def rubyopts [ '-rdatadog/profiling/preload' ] end |
#run ⇒ Object
12 13 14 15 |
# File 'lib/datadog/profiling/tasks/exec.rb', line 12 def run set_rubyopt! exec_with_error_handling(args) end |