tools/binary_size/find_large_commits.py
def _FindBigDeltas(revs_and_sizes, increase_threshold, decrease_threshold):
  """Filters revs_and_sizes for entries that grow/shrink too much."""
  big_jumps = []
  prev_size = revs_and_sizes[0][1]
  for rev, size in revs_and_sizes:
    delta = size - prev_size
    prev_size = size
    if delta > increase_threshold or -delta > decrease_threshold:
      big_jumps.append((rev, delta))
  return big_jumps
Filters revs_and_sizes for entries that grow/shrink too much.
Filters revs_and_sizes for entries that grow/shrink too much.
Filters revs_and_sizes for entries that grow / shrink too much .
def _FindBigDeltas(revs_and_sizes, increase_threshold, decrease_threshold):
  big_jumps = []
  prev_size = revs_and_sizes[0][1]
  for rev, size in revs_and_sizes:
    delta = size - prev_size
    prev_size = size
    if delta > increase_threshold or -delta > decrease_threshold:
      big_jumps.append((rev, delta))
  return big_jumps
def _FindBigDeltas ( revs_and_sizes , increase_threshold , decrease_threshold ) : big_jumps = [ ] prev_size = revs_and_sizes [ 0 ] [ 1 ] for rev , size in revs_and_sizes : delta = size - prev_size prev_size = size if delta > increase_threshold or - delta > decrease_threshold : big_jumps . append ( ( rev , delta ) ) return big_jumps
Filters revs_and_sizes for entries that grow/shrink too much.
Filters revs_and_sizes for entries that grow / shrink too much .
"""Filters revs_and_sizes for entries that grow/shrink too much."""
revs_and_sizes
increase_threshold
decrease_threshold