Added per-module profiling during module configuaration.