Finished performance log library copy/paste from project implementation.
It needs to refactor and simplify it.