Warning, /acts/CI/headwind.yml is written in an unsupported language. File is not indexed.
0001 collectors:
0002 - type: command
0003 arg: "CI/perf_headwind.py perf.csv"
0004 storage_dir: ../metrics/metrics
0005 report_filter: |
0006 def func(metric, df):
0007 import pandas as pd
0008 if metric.name.startswith("max_rss_"):
0009 df = df[[c for c in df.columns if c.startswith("max_rss")]].copy()
0010 elif metric.name.startswith("time_"):
0011 df = df[[c for c in df.columns if c.startswith("time_")]].copy()
0012 else:
0013 return True
0014
0015 tdf = df.transpose()
0016 mdf = tdf.sort_values(by=[0], ascending=False).head(10)
0017 leading = mdf.head(10).index.tolist()
0018 return metric.name in leading