profile: hide unused functions when !CONFIG_PROC_FS