@@ -185,6 +185,7 @@ def plot_table(
185185 bad_thres = 0.5 ,
186186 skipfirst = 0 ,
187187 bwfirst = 0 ,
188+ no_idealised = False ,
188189 ):
189190 """Plot Metrics in colour coded Table
190191
@@ -207,6 +208,8 @@ def plot_table(
207208 Skip output of first N columns of metric data (default 0).
208209 bwfirst: int
209210 Skip coloring of first N columns of metric data (default 0).
211+ no_idealised: bool
212+ Do not print the metrics resulting from idealisation of the trace.
210213
211214 Returns
212215 -------
@@ -226,6 +229,7 @@ def plot_table(
226229 bad_thres ,
227230 skipfirst ,
228231 bwfirst ,
232+ no_idealised ,
229233 )
230234
231235 def _plot_table (
@@ -237,8 +241,17 @@ def _plot_table(
237241 bad_thres ,
238242 skipfirst ,
239243 bwfirst ,
244+ no_idealised ,
240245 ):
241246
247+ remove_metrics = []
248+ if no_idealised :
249+ remove_metrics .extend (
250+ ["MPI Transfer Efficiency" , "MPI Serialisation Efficiency" ]
251+ )
252+
253+ plot_metrics = [m for m in self .metrics if m .key not in remove_metrics ]
254+
242255 if not columns_key :
243256 columns_values = self .metric_data .index
244257 if columns_label is None :
@@ -317,7 +330,7 @@ def _plot_table(
317330 0 , col_num - skipfirst , text = "{}" .format (col_data ), ** body_cell_kwargs
318331 )
319332
320- for row_num , metric in enumerate (self . metrics , start = 1 ):
333+ for row_num , metric in enumerate (plot_metrics , start = 1 ):
321334 cmap = ineff_cmap if metric .is_inefficiency else eff_cmap
322335 c = metric_table .add_cell (
323336 row_num , 0 , text = metric .displayname , ** label_cell_kwargs
0 commit comments