Particularly DOOMPROFILE, without which the --profile switch wasn't actually doing anything, and profile sessions would (silently) use the default user-emacs-directory and doom-user-dir.