Add profiling to squash

Not sure what triggered the syntactic change, but the for with one expression that we don't even use the value of looks odd. Maybe just `as` or `map`. (obviously minor though).