added profiling with graph generation
added profiling with graph generation