refactor profiler references to new endpoints

- change processId to pid
- change api endpoints