This is what happens when you test on a pre-configured environment that
already worked fine. This depended on a function that was never called
so we ended up probing for paths on NULL (repeating the same process twice)
instead of loading the profiler from the installation directory.
}
libname = g_strdup_printf ("mono-profiler-%s", mname);
if (!load_profiler_from_directory (NULL, libname, desc))
- if (!load_profiler_from_directory (mono_assembly_getrootdir (), libname, desc))
+ if (!load_profiler_from_directory (MONO_ASSEMBLIES, libname, desc))
g_warning ("Error loading profiler module '%s'", libname);
g_free (libname);