refactor profiler references to new endpoints

refactor profiler references to new endpoints

- change processId to pid
- change api endpoints

@seanbrookes please review