]> git.cworth.org Git - apitrace/blobdiff - retrace.py
Shave about 200mb of heap by not using full filterText on filtering.
[apitrace] / retrace.py
index 3a6c0f9cebfe6bfc7e6705f245834183004e9553..4169b26423513523fadc0989339598539ffa157b 100644 (file)
@@ -37,10 +37,7 @@ class ConstRemover(stdapi.Rebuilder):
         return const.type
 
     def visit_opaque(self, opaque):
-        expr = opaque.expr
-        if expr.startswith('const '):
-            expr = expr[6:]
-        return stdapi.Opaque(expr)
+        return opaque
 
 
 def handle_entry(handle, value):
@@ -269,7 +266,7 @@ class Retracer:
         string_switch('name', func_dict.keys(), handle_case)
 
         print '    if (retrace::verbosity >= 0)'
-        print '        std::cerr << "warning: unknown call " << call.name() << "\\n";'
+        print '        std::cerr << call.no << ": warning: unknown call " << call.name() << "\\n";'
         print '    return false;'
         print '}'
         print