| # Show named sets / known variables |
| # Filter lists from "all" into "lists" |
| # Find empty lists into "empty-lists" |
| empty-lists = dfilter lists ==0 |
| # Who's using the empty lists? |
| # print that info (from $0 in this case as we didn't give it a name but it was |
| # the first one we didn't give a name) |
| empty-growable-lists = filter (users empty-lists) _GrowableList |
| stats empty-growable-lists |
| retainers empty-growable-lists |
| strings = filter all String |
| # What's inside the strings |
| # Who's pointing to the big strings? |
| retainers (dfilter strings >=1024) |
| small-strings = dfilter strings <100 |
| # Who's retaining the string "foo" |
| f = dfilter small-strings foo |
| # Find stuff with specific field |
| hasField = filter all :specificField |
| stats closure hasField :specificField |
| foo = follow hasField :specificField |
| # Stop the closure search if going into specific files |
| stats closure foo ^file1.dart ^file2.dart ^file3.dart |