Add profiling to squash

Just to confirm - you meant to count the number of updates here?