tools/perf/cli_tools/soundwave/commands.py
def _IterStaleTestPaths(con, test_paths):
  """Iterate over test_paths yielding only those with stale or absent data.

  A test_path is considered to be stale if the most recent data point we have
  for it in the db is more than a day older.
  """
  a_day_ago = pandas.Timestamp.utcnow() - pandas.Timedelta(days=1)
  a_day_ago = a_day_ago.tz_convert(tz=None)

  for test_path in test_paths:
    latest = tables.timeseries.GetMostRecentPoint(con, test_path)
    if latest is None or latest['timestamp'] < a_day_ago:
      yield test_path
Iterate over test_paths yielding only those with stale or absent data.

  A test_path is considered to be stale if the most recent data point we have
  for it in the db is more than a day older.
  
Iterate over test_paths yielding only those with stale or absent data.
A test_path is considered to be stale if the most recent data point we have
for it in the db is more than a day older.
Iterate over test_paths yielding only those with stale or absent data . A test_path is considered to be stale if the most recent data point we have for it in the db is more than a day older .
def _IterStaleTestPaths(con, test_paths):
  a_day_ago = pandas.Timestamp.utcnow() - pandas.Timedelta(days=1)
  a_day_ago = a_day_ago.tz_convert(tz=None)
  for test_path in test_paths:
    latest = tables.timeseries.GetMostRecentPoint(con, test_path)
    if latest is None or latest['timestamp'] < a_day_ago:
      yield test_path
def _IterStaleTestPaths ( con , test_paths ) : a_day_ago = pandas . Timestamp . utcnow ( ) - pandas . Timedelta ( days = 1 ) a_day_ago = a_day_ago . tz_convert ( tz = None ) for test_path in test_paths : latest = tables . timeseries . GetMostRecentPoint ( con , test_path ) if latest is None or latest [ 'timestamp' ] < a_day_ago : yield test_path
Iterate over test_paths yielding only those with stale or absent data.
Iterate over test_paths yielding only those with stale or absent data .
"""Iterate over test_paths yielding only those with stale or absent data.

  A test_path is considered to be stale if the most recent data point we have
  for it in the db is more than a day older.
  """
con
test_paths