From c1971db45946919c4c9919977a0cfb0ef90f3abe Mon Sep 17 00:00:00 2001 From: Patrick Bellasi Date: Tue, 26 Jun 2018 11:13:36 +0100 Subject: [PATCH] fixup: latency_analysis: add statistics getter method Accidentally, the original patch proposed in #608 has been merged on top of the series #602 but that version was missing the fixups suggested by @valschneider in the original PR. Let's fix this by adding the proposed changes now. Signed-off-by: Patrick Bellasi --- libs/utils/analysis/latency_analysis.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libs/utils/analysis/latency_analysis.py b/libs/utils/analysis/latency_analysis.py index 9344df816..780c90709 100644 --- a/libs/utils/analysis/latency_analysis.py +++ b/libs/utils/analysis/latency_analysis.py @@ -381,7 +381,6 @@ class LatencyAnalysis(AnalysisModule): return df, cdf - @memoized def _dfg_latency_stats_df(self, task, kind='all', threshold_ms=1): """ @@ -402,9 +401,6 @@ class LatencyAnalysis(AnalysisModule): # Get latency events df, cdf = self._get_latency_df(task, kind, threshold_ms) - self._log.info('Total: %5d latency events', len(df)) - self._log.info('%.1f %% samples below %d [ms] threshold', - 100. * cdf.below, threshold_ms) # Return statistics stats_df = df.describe(percentiles=[0.95, 0.99]) @@ -457,7 +453,6 @@ class LatencyAnalysis(AnalysisModule): if not td: return None - # Setup plots gs = gridspec.GridSpec(2, 2, height_ratios=[2,1], width_ratios=[1,1]) plt.figure(figsize=(16, 8)) -- GitLab