Use the ‘_lsprof’ module.
objspace.usemodules._testing
objspace.usemodules.math
Enter search terms or a module, class or function name.