projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename the ctf class to CTFReader
[babeltrace.git]
/
bindings
/
python
/
examples
/
example-api-test.py
diff --git
a/bindings/python/examples/example-api-test.py
b/bindings/python/examples/example-api-test.py
index d6b48ffda79e6119bbd13900ce3ba2ca4e549d18..570e23e5a9ebab50763d2543904c8edefaf7894c 100644
(file)
--- a/
bindings/python/examples/example-api-test.py
+++ b/
bindings/python/examples/example-api-test.py
@@
-34,7
+34,7
@@
if trace_handle is None:
raise IOError("Error adding trace")
# Listing events
raise IOError("Error adding trace")
# Listing events
-lst =
ctf
.get_event_decl_list(trace_handle, ctx)
+lst =
CTFReader
.get_event_decl_list(trace_handle, ctx)
print("--- Event list ---")
for item in lst:
print("event : {}".format(item.get_name()))
print("--- Event list ---")
for item in lst:
print("event : {}".format(item.get_name()))
@@
-42,7
+42,7
@@
print("--- Done ---")
# Iter trace
bp = IterPos(SEEK_BEGIN)
# Iter trace
bp = IterPos(SEEK_BEGIN)
-ctf_it =
ctf
.Iterator(ctx,bp)
+ctf_it =
CTFReader
.Iterator(ctx,bp)
event = ctf_it.read_event()
while(event is not None):
event = ctf_it.read_event()
while(event is not None):
This page took
0.023183 seconds
and
4
git commands to generate.