Fix bugs and support network information in the profiler