Module: MobyBehaviour::QT::Mem
- Includes:
- Behaviour
- Defined in:
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/cute_mem.rb
Overview
description
behaviour
QtMem
requires
testability-driver-qt-sut-plugin
input_type
sut_type
QT
sut_version
objects
Instance Method Summary collapse
-
#start_mem_measurement ⇒ Object
description Start collecting MEM usage per second data for the app.
-
#stop_mem_measurement ⇒ Object
description Stop collecting MEM usage data for the object.
Methods included from Behaviour
Instance Method Details
#start_mem_measurement ⇒ Object
description
Start collecting MEM usage per second data for the app.
returns
NilClass description: - example: -
exceptions
ArgumentError description: In case the given parameters are not valid.
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/cute_mem.rb', line 59 def start_mem_measurement begin log_mem(:interval => 1, :filePath => '/tmp') rescue Exception $logger.behaviour "FAIL;Failed start_mem_measurement.;#{ identity };start_mem_measurement;" raise end $logger.behaviour "PASS;Operation start_mem_measurement executed successfully.;#{ identity };start_mem_measurement;" nil end |
#stop_mem_measurement ⇒ Object
description
Stop collecting MEM usage data for the object.
returns
Array description: An Array of MEM entries. Each entry is a hash table that contains the value and time stamp => 42.00, heapSize => 42.00, time_stamp => 06:49:42.259 example: [=> 42.0, heapSize => 42.0, time_stamp => 06:49:42.259, => 32.0, heapSize => 32.0, time_stamp => 06:49:43.259]
exceptions
ArgumentError description: In case the given parameters are not valid.
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/cute_mem.rb', line 90 def stop_mem_measurement begin results = parse_results_mem( stop_mem_log() ) rescue Exception $logger.behaviour "FAIL;Failed stop_mem_measurement.;#{ identity };stop_mem_measurement;" raise end $logger.behaviour "PASS;Operation stop_mem_measurement executed successfully.;#{ identity };stop_mem_measurement;" results end |