Fixed profiling to work on both android and ubuntu(hopefully windows and osx also)