Class: Rubotium::Memory::DataPoint
- Inherits:
 - 
      Object
      
        
- Object
 - Rubotium::Memory::DataPoint
 
 
- Defined in:
 - lib/rubotium/memory/data_point.rb
 
Instance Attribute Summary collapse
- 
  
    
      #time  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute time.
 
Instance Method Summary collapse
- #cmdline ⇒ Object
 - 
  
    
      #initialize(time, data_struct)  ⇒ DataPoint 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of DataPoint.
 - #pid ⇒ Object
 - #pss ⇒ Object
 - #rss ⇒ Object
 - #to_json ⇒ Object
 - #to_s ⇒ Object
 - #uss ⇒ Object
 - #vss ⇒ Object
 
Constructor Details
#initialize(time, data_struct) ⇒ DataPoint
Returns a new instance of DataPoint.
      7 8 9 10  | 
    
      # File 'lib/rubotium/memory/data_point.rb', line 7 def initialize(time, data_struct) @time = time @data_struct = data_struct end  | 
  
Instance Attribute Details
#time ⇒ Object (readonly)
Returns the value of attribute time.
      5 6 7  | 
    
      # File 'lib/rubotium/memory/data_point.rb', line 5 def time @time end  | 
  
Instance Method Details
#cmdline ⇒ Object
      32 33 34  | 
    
      # File 'lib/rubotium/memory/data_point.rb', line 32 def cmdline parsed_result.cmdline end  | 
  
#pid ⇒ Object
      12 13 14  | 
    
      # File 'lib/rubotium/memory/data_point.rb', line 12 def pid parsed_result.pid end  | 
  
#pss ⇒ Object
      24 25 26  | 
    
      # File 'lib/rubotium/memory/data_point.rb', line 24 def pss parsed_result.pss end  | 
  
#rss ⇒ Object
      20 21 22  | 
    
      # File 'lib/rubotium/memory/data_point.rb', line 20 def rss parsed_result.rss end  | 
  
#to_json ⇒ Object
      40 41 42 43 44 45 46 47 48 49  | 
    
      # File 'lib/rubotium/memory/data_point.rb', line 40 def to_json { :time => time, :pid => pid, :vss => vss, :rss => rss, :uss => uss, :cmd => cmdline } end  | 
  
#to_s ⇒ Object
      36 37 38  | 
    
      # File 'lib/rubotium/memory/data_point.rb', line 36 def to_s to_json.to_json end  | 
  
#uss ⇒ Object
      28 29 30  | 
    
      # File 'lib/rubotium/memory/data_point.rb', line 28 def uss parsed_result.uss end  | 
  
#vss ⇒ Object
      16 17 18  | 
    
      # File 'lib/rubotium/memory/data_point.rb', line 16 def vss parsed_result.vss end  |