def run(self, cmd):
        """ Profile a single executable statement in the main namespace.
        """
        # TODO: can this be removed ?
        import __main__
        main_dict = __main__.__dict__
        return self.runctx(cmd, main_dict, main_dict)
def run ( self , cmd ) : import __main__ main_dict = __main__ . __dict__ return self . runctx ( cmd , main_dict , main_dict )
Profile a single executable statement in the main namespace.