# 1. Load all modules we believe are needed
require My::Everything;
# 2. Set a checkpoint for all loaded modules/packages/namespaces
Devel::Leak::Module::checkpoint();
# 3. Run code that should not result in loading any new code
My::foo();
# 4. Confirm that no new code was loaded during
Devel::Leak::Module::print_new();