Fix #3841
Small cleanup and possible bugfix in Profile
Merge branch 'master' of github.com:JuliaLang/julia