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.
10 11 12 |
# File 'lib/datadog/profiling/tasks/exec.rb', line 10 def initialize(args) @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
8 9 10 |
# File 'lib/datadog/profiling/tasks/exec.rb', line 8 def args @args end |
Instance Method Details
#rubyopts ⇒ Object
19 20 21 22 23 |
# File 'lib/datadog/profiling/tasks/exec.rb', line 19 def rubyopts [ "-rdatadog/profiling/preload" ] end |
#run ⇒ Object
14 15 16 17 |
# File 'lib/datadog/profiling/tasks/exec.rb', line 14 def run set_rubyopt! exec_with_error_handling(args) end |