Add profiling to squash

Not sure, it is really the "sample rate". Any name is probably going to be pretty clumsy - a good default will matter.