The Developer Tools in the new default browser of Windows 10 – Microsoft Edge have been equipped with necessary tools to help web developers test their web sites in Microsoft Edge. However, failures can occur. So, to prevent such occasional failures and ensure all things work as expected, Edge has a dedicated section for error messages alongside their solutions. For instance, when you see an error message ‘An error occurred while starting the profiling session’ in the DevTools Memory Panel, here’s what you can do to fix it quickly.
An error occurred while starting the profiling session in Edge DevTools
To fix this error associated with the Memory Panel of Edge (Chromium) DevTools, we’ll need to take two steps:
- Access Microsoft (R) Diagnostics Hub Standard Collector Service.
- Restart the Microsoft (R) Diagnostics Hub Standard Collector Service.
A Memory panel primarily measures your use of memory resources and compare heap snapshots at different states of code execution. The Memory panel provides profiling of three different types:
The Memory panel provides profiling of three different types:
- Heap Snapshot
- Record Allocation Timeline
- Record Allocation Profiles
Using this panel, we can find issues that affect the page performance in most common scenarios, including memory leaks and bloats.
1] Access Microsoft (R) Diagnostics Hub Standard Collector Service
To access Microsoft (R) Diagnostics Hub Standard Collector Service, open the ‘Run’ dialog box, type ‘services.msc’ in it and press Enter.
Then, from the Services (local) panel that opens on the right-hand side, locate Microsoft (R) Diagnostics Hub Standard Collector Service.
2] Restart the Microsoft (R) Diagnostics Hub Standard Collector Service
Now, after getting at Microsoft (R) Diagnostics Hub Standard Collector Service, right-click it and choose ‘Restart’ option.
When done, close the Microsoft Edge Developer Tools and the tab. Open a new tab, navigate to your page, and press F12.
You should now be able to begin profiling as seen in the screenshot above.
That’s it!