Revert "Removed profilehooks"

This reverts commit b9740bcb710ee9ee57e90e01c047c6ccee9a70d8.