cpython icon indicating copy to clipboard operation
cpython copied to clipboard

Add import.complete audit event.

Open folded opened this issue 9 months ago • 7 comments

This adds a balancing "import.complete" audit event matching the existing "import" audit event, which allows the audit system to be used to observe programatically the same import timing information that is logged by PYTHONPROFILEIMPORTTIME.

The current import audit event may be fired twice for imports of native modules. The second import event can be distinguished from the first because the second argument is always non-None in this case, whereas it is always None in the first case.

folded avatar May 17 '24 13:05 folded