Chart’s cost-cutting efforts helped insure profits beat estimates, but things are ugly out there. Here’s a closer look.