projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: return event timestamp in _timestamp_at_pos
[babeltrace.git]
/
bindings
/
python
/
reader.py
diff --git
a/bindings/python/reader.py
b/bindings/python/reader.py
index 8c07c986d93607406e60a84ce49a84516aa6baa0..6758043599276d3c535708cd08054f034e22895f 100644
(file)
--- a/
bindings/python/reader.py
+++ b/
bindings/python/reader.py
@@
-207,6
+207,11
@@
class TraceCollection:
ev_ptr = nbt._bt_ctf_iter_read_event(ctf_it_ptr)
nbt._bt_ctf_iter_destroy(ctf_it_ptr)
ev_ptr = nbt._bt_ctf_iter_read_event(ctf_it_ptr)
nbt._bt_ctf_iter_destroy(ctf_it_ptr)
+ ev = Event.__new__(Event)
+ ev._e = ev_ptr
+
+ return ev.timestamp
+
def _events(self, begin_pos_ptr, end_pos_ptr):
ctf_it_ptr = nbt._bt_ctf_iter_create(self._tc, begin_pos_ptr, end_pos_ptr)
def _events(self, begin_pos_ptr, end_pos_ptr):
ctf_it_ptr = nbt._bt_ctf_iter_create(self._tc, begin_pos_ptr, end_pos_ptr)
This page took
0.024247 seconds
and
4
git commands to generate.