module-profiler
module-profiler copied to clipboard
Change root.phtml view to use Magento getViewFileUrl
Swap to use getViewFileUrl
Using magento 2.1.10 with composer your module failed to load for me, complaning it couldn't find files because in production mode your profiler isn't expecting the DIR for root.phtml to be in /var/view_processed.
Switching to this method should ensure that your module won't fail on production mode, at least not for the above reason.