From d5609f262c087f2c9d11e88d9caed4aa1c729dd5 Mon Sep 17 00:00:00 2001 From: Brendan Jackman Date: Thu, 12 Jan 2017 18:50:01 +0000 Subject: [PATCH 1/2] Trace: Log more quietly These log messages get printed very often, especially for automated testing where lots of traces are parsed. So let's make them DEBUG-level. --- libs/utils/trace.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/utils/trace.py b/libs/utils/trace.py index e8efebaa0..3c4faae04 100644 --- a/libs/utils/trace.py +++ b/libs/utils/trace.py @@ -186,7 +186,7 @@ class Trace(object): self.x_max = self.time_range else: self.x_max = t_max - self._log.info('Set plots time range to (%.6f, %.6f)[s]', + self._log.debug('Set plots time range to (%.6f, %.6f)[s]', self.x_min, self.x_max) def __registerTraceEvents(self, events): @@ -228,11 +228,11 @@ class Trace(object): self._log.debug('Loading [sched] events from trace in [%s]...', path) self._log.debug('Parsing events: %s', self.events) if trace_format.upper() == 'SYSTRACE' or path.endswith('html'): - self._log.info('Parsing SysTrace format...') + self._log.debug('Parsing SysTrace format...') trace_class = trappy.SysTrace self.trace_format = 'SysTrace' elif trace_format.upper() == 'FTRACE': - self._log.info('Parsing FTrace format...') + self._log.debug('Parsing FTrace format...') trace_class = trappy.FTrace self.trace_format = 'FTrace' else: @@ -341,7 +341,7 @@ class Trace(object): te = df.index[-1] self.time_range = te - ts - self._log.info('Collected events spans a %.3f [s] time interval', + self._log.debug('Collected events spans a %.3f [s] time interval', self.time_range) # Build a stat on trace overutilization @@ -350,7 +350,7 @@ class Trace(object): self.overutilized_time = df[df.overutilized == 1].len.sum() self.overutilized_prc = 100. * self.overutilized_time / self.time_range - self._log.info('Overutilized time: %.6f [s] (%.3f%% of trace time)', + self._log.debug('Overutilized time: %.6f [s] (%.3f%% of trace time)', self.overutilized_time, self.overutilized_prc) def _scanTasks(self, df, name_key='comm', pid_key='pid'): -- GitLab From b5f69b54f0593fca83123316b172f014d64842ac Mon Sep 17 00:00:00 2001 From: Brendan Jackman Date: Thu, 12 Jan 2017 18:53:20 +0000 Subject: [PATCH 2/2] analysis_register: Log more quietly These log messages get printed very often, especially for automated testing where lots of traces are parsed. So let's make them DEBUG-level. --- libs/utils/analysis_register.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/utils/analysis_register.py b/libs/utils/analysis_register.py index fb348245f..ba5be1e34 100644 --- a/libs/utils/analysis_register.py +++ b/libs/utils/analysis_register.py @@ -50,7 +50,7 @@ class AnalysisRegister(object): sys.path.insert(0, analysis_dir) self._log.debug('Syspath: %s', sys.path) - self._log.info('Registering trace analysis modules:') + self._log.debug('Registering trace analysis modules:') for filepath in glob(os.path.join(analysis_dir, '*.py')): filename = os.path.splitext(os.path.basename(filepath))[0] @@ -71,6 +71,6 @@ class AnalysisRegister(object): issubclass(handler, AnalysisModule): module_name = module.__name__.replace('_analysis', '') setattr(self, module_name, handler(trace)) - self._log.info(' %s', module_name) + self._log.debug(' %s', module_name) # vim :set tabstop=4 shiftwidth=4 expandtab -- GitLab