We present a reconstruction of the in-depth profile of line gratings using critical-dimension grazing incidence small angle x-ray scattering with a compact Cu-Kα x-ray source mounted on a laboratory SAXS. By taking advantage of the grazing-incidence configuration and with a rotation of the gratings under the x-ray beam, several orders of the Bragg rods were probed and lead to the extraction of the in-depth profile of the lines. The extracted in-depth profile is compared with 3D-AFM results. The methodology developed mimics the one of CD-SAXS measurements, in transmission, in order to enable future comparison between the two approaches as well as building complementary modeling. These results open new perspectives for x-ray metrology at the fab since the Cu-Kα x-ray source is the most developed, spread and used source by the x-ray community.