Implemented profiler logging and persistence