Class: Syscall
- Inherits:
-
Object
- Object
- Syscall
- Defined in:
- lib/tracer.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#pid ⇒ Object
readonly
Returns the value of attribute pid.
-
#retval ⇒ Object
readonly
Returns the value of attribute retval.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(name:, args:, retval:, duration:, timestamp:, pid:) ⇒ Syscall
constructor
A new instance of Syscall.
- #to_s ⇒ Object
Constructor Details
#initialize(name:, args:, retval:, duration:, timestamp:, pid:) ⇒ Syscall
Returns a new instance of Syscall.
7 8 9 10 11 12 13 14 |
# File 'lib/tracer.rb', line 7 def initialize(name:, args:, retval:, duration:, timestamp:, pid:) @name = name @args = args @retval = retval @duration = duration @timestamp = @pid = pid end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
5 6 7 |
# File 'lib/tracer.rb', line 5 def args @args end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
5 6 7 |
# File 'lib/tracer.rb', line 5 def duration @duration end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/tracer.rb', line 5 def name @name end |
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
5 6 7 |
# File 'lib/tracer.rb', line 5 def pid @pid end |
#retval ⇒ Object (readonly)
Returns the value of attribute retval.
5 6 7 |
# File 'lib/tracer.rb', line 5 def retval @retval end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
5 6 7 |
# File 'lib/tracer.rb', line 5 def @timestamp end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/tracer.rb', line 16 def to_s "#{name}(#{args}) = #{retval} <#{duration}s>" end |