Add a predicate that returns maximum resident set size