Log heap operations.