how to implement session based profiler