code: def profile(self, username):
          
          if not username and g.user:
              username = g.user.username
  
          payload = {
              'user': bootstrap_user_data(username, include_perms=True),
              'common': self.common_bootsrap_payload(),
          }
  
          return self.render_template(
              'superset/basic.html',
              title=_("%(user)s's profile", user=username),
              entry='profile',
              bootstrap_data=json.dumps(payload, default=utils.json_iso_dttm_ser),
          )
docs: User profile page