attachment
--- ./util/misc.py~1.8.3	2008-03-23 11:07:39.000000000 +0100
+++ ./util/misc.py	2009-01-13 20:30:38.000000000 +0100
@@ -34,8 +34,19 @@
 import string, re
 import copy
 import htmlentitydefs
 from stat import *
+import inspect
 
+def print_upper_execution_stack(depth=4):
+    """ print 4 most recent frames in the execution stack,
+    but avoiding the freevo benchmarking tool.
+    Warning: this is intended only for temporary debugging."""
+    for i in inspect.stack()[1:] :
+        if i[1][-13:] != '/benchmark.py' or i[3] != 'origfunc' :
+            print i[1:]
+            depth -= 1
+            if depth <= 0 :
+                return
 
 # Configuration file. Determines where to look for AVI/MP3 files, etc
 import config
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to