Quality of a refractive compound X-ray lens can be limited by imperfections in surfaces of unit lenses and stacking precision. In general case both the lens transmission and optical aberrations define properties of a beam in the lens exit plane; together they can be expressed in terms of the generalized pupil function. In this work we measure this function for a diamond single crystal compound refractive lens. Consequently, we apply the pupil function to evaluate the performance of the examined compound refractive X-ray lens. A number of practically important conclusions can be drawn from such analysis.