##// END OF EJS Templates
Document ExecutionMagics._run_with_profiler
Takafumi Arakaki -
Show More
@@ -184,6 +184,19 b' python-profiler package from non-free.""")'
184 184 return self._run_with_profiler(arg_str, opts, self.shell.user_ns)
185 185
186 186 def _run_with_profiler(self, code, opts, namespace):
187 """
188 Run `code` with profiler. Used by ``%prun`` and ``%run -p``.
189
190 Parameters
191 ----------
192 code : str
193 Code to be executed.
194 opts : Struct
195 Options parsed by `self.parse_options`.
196 namespace : dict
197 A dictionary for Python namespace (e.g., `self.shell.user_ns`).
198
199 """
187 200
188 201 opts.merge(Struct(D=[''], l=[], s=['time'], T=['']))
189 202
General Comments 0
You need to be logged in to leave comments. Login now