Code created before calling PyCode_AddWatcher

PyCode_AddWatcher lets you get a callback when new code objects are created, but by the time that happens many might already exist, unless you somehow guarantee your module is imported super early. Is there a way to crawl the code objects that already exist? That isn’t as expensive as calling gc.get_objects() and testing if literally every single object in existence is a code object?