DF-5312 cleaned-up Profiler code;
DF-5312 cleaned-up Profiler code;
DF-5312 corrected code to follow code-style;
DF-5312 updated Profiler to work properly in threaded environment;
DF-5312 corrected Profiler to use FW Spinlock;