Support for profile/profileEnd in console