profiling module modification so it can be used easilly during testing + an example of usage in longtest LdapTest