Saw these on a trip to the Harrisburg area of Pennsylvania.
Snow guards or snow stops. They keep the snow from dumping off the roof quickly.
They keep built up snow and ice from sliding off of the roof and injuring people. You’ll usually see them on roofing near or overhanging walkways and sidewalks.
They are “snow birds”. It breaks up snow as it melts and falls off the roof so it doesn’t come down in giant sheets.
Snow guards
They break up the ice-sheets when snow / ice freezes on your roof.