I previously shared how to enable Magento 2 profiler to be able to examine server-side performance issues.
To avoid bothering front-end users, must be Magento 2 profiler disabled after the speed test is complete.
If not, the user experience will be compromised, which is unacceptable.
Following the completion of the speed test, Magento 2's profiler can be disabled using the shared technique.
For a Method to Disable Magento 2 Profiler, Visit : https://meetanshi.com/blog/disable-magento-2-profiler/