Fixed the profiler to work with the new globalManager