projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Python-bindings: Refactor the Event class
[babeltrace.git]
/
bindings
/
python
/
examples
/
babeltrace_and_lttng.py
diff --git
a/bindings/python/examples/babeltrace_and_lttng.py
b/bindings/python/examples/babeltrace_and_lttng.py
index 3e7d57f53627646ec9eb7f7c622412e1402a289e..42ebc85eb3019c5e2579206b8ff36088dfc1a265 100644
(file)
--- a/
bindings/python/examples/babeltrace_and_lttng.py
+++ b/
bindings/python/examples/babeltrace_and_lttng.py
@@
-110,8
+110,7
@@
print("Writing trace file...")
output = open(out_file, "wt")
for event in traces.events:
output = open(out_file, "wt")
for event in traces.events:
- output.write("TS: {}, {} : {}\n".format(event.get_timestamp(),
- event.get_cycles(), event.get_name()))
+ output.write("TS: {}, {} : {}\n".format(event.timestamp, event.cycles, event.name))
# Closing file
output.close()
# Closing file
output.close()
This page took
0.023229 seconds
and
4
git commands to generate.