bt2c::Logger: remove unused cLevel() method
[babeltrace.git] / bindings / python / examples / sequence_test.py
diff --git a/bindings/python/examples/sequence_test.py b/bindings/python/examples/sequence_test.py
deleted file mode 100644 (file)
index 2379d9b..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/usr/bin/env python3
-# sequence_test.py
-#
-# Babeltrace example script based on the Babeltrace API test script
-#
-# Copyright 2013 Xiaona Han
-# Copyright 2012 EfficiOS Inc.
-#
-# Author: Danny Serres <danny.serres@efficios.com>
-# Author: Xiaona Han <xiaonahappy13@163.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-
-# This example uses the babeltrace python module
-# to partially test the sequence API
-
-import sys
-from babeltrace import *
-
-# Check for path arg:
-if len(sys.argv) < 2:
-       raise TypeError("Usage: sequence_test.py path/to/file")
-
-# Create TraceCollection and add trace:
-traces = TraceCollection()
-trace_handle = traces.add_trace(sys.argv[1], "ctf")
-if trace_handle is None:
-       raise IOError("Error adding trace")
-
-# Listing events
-lst = CTFReader.get_event_decl_list(trace_handle, traces)
-print("--- Event list ---")
-for item in lst:
-       print("event : {}".format(item.get_name()))
-print("--- Done ---")
-
-for event in traces.events:
-       print("TS: {}, {} : {}".format(event.get_timestamp(),
-               event.get_cycles(), event.get_name()))
-       field = event.get_field("seq_int_field")
-       if field is not None:
-               print("int sequence values: {}". format(field[0].get_value()))
-       field = event.get_field("seq_long_field")
-       if field is not None:
-               print("long sequence values: {}". format(field[0].get_value()))
This page took 0.024615 seconds and 4 git commands to generate.