ia64/xen-unstable

changeset 14410:1ada28678762

Improve the performance of the Xend trace facility, and exclude XendMonitor
and XendLogging from those classes that are traced.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Wed Mar 14 23:13:37 2007 +0000 (2007-03-14)
parents acdfb333af53
children 8645c726ce9c
files tools/python/xen/xend/server/SrvDaemon.py
line diff
     1.1 --- a/tools/python/xen/xend/server/SrvDaemon.py	Wed Mar 14 23:12:59 2007 +0000
     1.2 +++ b/tools/python/xen/xend/server/SrvDaemon.py	Wed Mar 14 23:13:37 2007 +0000
     1.3 @@ -276,9 +276,12 @@ class Daemon:
     1.4              if not m:
     1.5                  return None
     1.6              modulename = m.group(1)
     1.7 -            if re.search('sxp.py', modulename):
     1.8 -                return None
     1.9 -            if re.search('SrvServer.py', modulename):
    1.10 +            if modulename.endswith('.pyc'):
    1.11 +                modulename = modulename[:-1]
    1.12 +            if modulename == 'sxp.py' or \
    1.13 +               modulename == 'XendLogging.py' or \
    1.14 +               modulename == 'XendMonitor.py' or \
    1.15 +               modulename == 'server/SrvServer.py':
    1.16                  return None
    1.17              self.traceindent += 1
    1.18              self.print_trace("> %s:%s\n"