adapt to new JS api for profiling
Merge branch 'master' of github.com:mihneadb/xpcshelltest-resource-usage