summaryrefslogtreecommitdiffstats
path: root/Monitoring/MonitoringService/debugger.py
diff options
context:
space:
mode:
Diffstat (limited to 'Monitoring/MonitoringService/debugger.py')
-rw-r--r--Monitoring/MonitoringService/debugger.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/Monitoring/MonitoringService/debugger.py b/Monitoring/MonitoringService/debugger.py
new file mode 100644
index 0000000..e488fb6
--- /dev/null
+++ b/Monitoring/MonitoringService/debugger.py
@@ -0,0 +1,13 @@
+from time import time
+
+class d(object):
+ def __init__(self, n = None):
+ self.n = n
+ self.c = 0
+ self.t = time()
+ def __str__(self):
+ t = time()
+ self.c += 1
+ r = "%s %d %f" % (self.n, self.c, t-self.t)
+ self.t = t
+ return r