Merge pull request #3 from gbbr/master

Switched to switch
Merge branch 'master' of https://github.com/pkg/profile into readability
Made MemProfileRate an unexported const and moved path resolver back inline