Moved profile functions to dlls/kernel.

6 files changed