Constipation, when to see dr?

S

My little one is almost 3 weeks. Her poops are pretty firm pebbles and it seems very difficult for her to pass. It has been like this since she started formula 2 weeks ago. Should I give her more time to adjust or at what point should I make a Dr appt?