'Evaluate an exec-compatible string in a specific
environment.
The string is compiled before profiling begins.'

def runctx(self, cmd, globals, locals):

    code = compile(cmd, '<string>', 'exec')
    self._prof.runcode(code, globals, locals)
    return self
