We study the critical energy and magnetization profiles for the Ising quantum chain with a marginal extended surface perturbation of the form A/y, y being the distance from the surface (Hilhorst-van Leeuwen model). For weak local couplings, A < Ac, the model displays a continuous surface transition with A-dependent exponents, whereas, for A > Ac, there is surface order at the bulk critical poin...