adding performance logging to txt file