Yahoo's revenue climbs 2 percent, though profit sags