changed profiler code - output is now in format of GraphPrinter