Class: Babeltrace::CTF::Trace
- Defined in:
- lib/babeltrace/ctf/events.rb
Instance Attribute Summary
Attributes inherited from Trace
Instance Method Summary collapse
Methods inherited from Trace
#get_path, #get_timestamp_begin, #get_timestamp_end, #initialize
Constructor Details
This class inherits a constructor from Babeltrace::Trace
Instance Method Details
#get_event_decl_list ⇒ Object
194 195 196 197 198 199 200 201 |
# File 'lib/babeltrace/ctf/events.rb', line 194 def get_event_decl_list count = FFI::MemoryPointer::new(:uint) list = FFI::MemoryPointer::new(:pointer) res = CTF.bt_ctf_get_event_decl_list(@handle_id, @context, list, count) count = count.read(:uint) list = list.read_pointer.read_array_of_pointer(count) list.collect { |p| Internal::EventDecl::new(p) } end |