26 May
2015
26 May
'15
7:39 p.m.
"an external module" we would like to monitor includes C extension module and build-in module, e.g. fcntl, select. On Tue, May 26, 2015 at 8:04 PM, Armin Rigo <arigo@tunes.org> wrote:
Hi Yicong,
On 26 May 2015 at 14:00, Yicong Huang <hengha.mao@gmail.com> wrote:
Here is the plan: 1. When the code try to import an external module, we invoke an inserted function doLog().
What do you mean by "an external module"? Is it a CPython C extension module imported via cpyext?
I really think you want to look at sys.settrace() or sys.setprofile().
A bientôt,
Armin.