Profiling from embedded C [newbie]
Dave Bronner
dbronner at gmail.com
Tue Nov 22 18:15:32 EST 2005
Hi all,
I'm trying to profile a large collection of scripts called from a
wrapper C program through the following call:
compiled_obj = CompilePythonFile(filename);
...
PyObject* result = PyEval_EvalCode(compiled_obj, globals, globals);
Is there an easy way to wrap/edit these calls so that they invoke the
python profiler module? I'm pretty new to python, so specific examples
or links to docs would be much appreciated.
Thanks,
Dave
More information about the Python-list
mailing list