[d-feet/pygi] Remove unused timing calculation



commit a4cf90e622156af1328dae82f949a22aee859222
Author: Thomas Bechtold <thomasbechtold jpberlin de>
Date:   Tue Oct 9 09:40:15 2012 +0200

    Remove unused timing calculation

 dfeet/introspection.py |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/dfeet/introspection.py b/dfeet/introspection.py
index b43d3a9..68135bc 100644
--- a/dfeet/introspection.py
+++ b/dfeet/introspection.py
@@ -31,7 +31,6 @@ class AddressInfo():
         self.address = address # can be Gio.BusType.SYSTEM or Gio.BusType.SYSTEM or an other address
         self.name = name #the bus name or None
         self.connection_is_bus = connection_is_bus # is it a bus or a p2p connection?
-        self.__introspection_time = -1 # time needed to introspect the given bus name (in seconds)
 
         #setup UI
         ui = UILoader(UILoader.UI_INTROSPECTION)
@@ -77,11 +76,6 @@ class AddressInfo():
         self.introspect_start()
 
 
-    @property
-    def introspection_time(self):
-        return self.__introspection_time
-
-
     def __treeview_cursor_changed_cb(self, treeview):
         """ do something when a row is selected """
         selection = self.__treeview.get_selection()
@@ -132,8 +126,7 @@ class AddressInfo():
         self.introspect_box.pack_end(self.__spinner, True, False, 0)
         #cleanup current tree model
         self.__treemodel.clear()
-        #start introspection and measure introspection time
-        self.__introspection_time_start = time.time()
+        #start introspection
         self.__dbus_node_introspect("/")
 
 
@@ -204,7 +197,6 @@ class AddressInfo():
                     self.__dbus_node_introspect(object_path_new)
             else:
                 #no nodes left. we finished the introspection
-                self.__introspection_time = time.time() - self.__introspection_time_start
                 #update name, unique name, ...
                 self.__label_name.set_text(self.name)
                 try:
@@ -217,7 +209,6 @@ class AddressInfo():
                 self.__spinner.stop()
                 self.introspect_box.pack_end(self.__scrolledwindow, True, True, 0)
                 self.introspect_box.show_all()
-                print "Introspection for '%s' finished after %.5f s" % (self.name, self.introspection_time)
                 #TODO: remove this and add a button to expand the whole tree!?
                 self.__treeview.expand_all()
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]