Profiling from embedded C [newbie]

D

Dave Bronner

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,675
Latest member
RollandKna

Latest Threads

Top