[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Improve the performance of the Xend trace facility, and exclude XendMonitor
# HG changeset patch # User Ewan Mellor <ewan@xxxxxxxxxxxxx> # Date 1173914017 0 # Node ID 1ada286787627aeb08498cc6e900e657eff68ff8 # Parent acdfb333af532b4eed41a6b4fd72800531cca497 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@xxxxxxxxxxxxx> --- tools/python/xen/xend/server/SrvDaemon.py | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff -r acdfb333af53 -r 1ada28678762 tools/python/xen/xend/server/SrvDaemon.py --- a/tools/python/xen/xend/server/SrvDaemon.py Wed Mar 14 23:12:59 2007 +0000 +++ b/tools/python/xen/xend/server/SrvDaemon.py Wed Mar 14 23:13:37 2007 +0000 @@ -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" _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |