Fix profiler for nodejs and chrome browser