Add IPC notifications for tracking and profiling

Factor into a function so its not duplicated.