diff options
author | Ewan Mellor <ewan@xensource.com> | 2007-03-14 23:13:37 +0000 |
---|---|---|
committer | Ewan Mellor <ewan@xensource.com> | 2007-03-14 23:13:37 +0000 |
commit | 4438f722ec67c231255a8ecdd9576b7998824299 (patch) | |
tree | 8f15ddb0cbb36e7f4d58b251a79b0e314600f653 /tools | |
parent | 3c924c8c4c2bc468e4056059d53e7945c9d6d336 (diff) | |
download | xen-4438f722ec67c231255a8ecdd9576b7998824299.tar.gz xen-4438f722ec67c231255a8ecdd9576b7998824299.tar.bz2 xen-4438f722ec67c231255a8ecdd9576b7998824299.zip |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/python/xen/xend/server/SrvDaemon.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/python/xen/xend/server/SrvDaemon.py b/tools/python/xen/xend/server/SrvDaemon.py index 04f7a789a6..adb83b679c 100644 --- a/tools/python/xen/xend/server/SrvDaemon.py +++ b/tools/python/xen/xend/server/SrvDaemon.py @@ -276,9 +276,12 @@ class Daemon: if not m: return None modulename = m.group(1) - if re.search('sxp.py', modulename): - return None - if re.search('SrvServer.py', modulename): + if modulename.endswith('.pyc'): + modulename = modulename[:-1] + if modulename == 'sxp.py' or \ + modulename == 'XendLogging.py' or \ + modulename == 'XendMonitor.py' or \ + modulename == 'server/SrvServer.py': return None self.traceindent += 1 self.print_trace("> %s:%s\n" |