/home/sharedstore/public_html/prestashop.sharedstore.ma/tools/profiling
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/tools/profiling/Module.php (1664B)
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
declare(strict_types=1);
class Module extends ModuleCore
{
protected static function coreLoadModule($moduleName)
{
$timeStart = microtime(true);
$memoryStart = memory_get_usage();
$result = parent::coreLoadModule($moduleName);
Profiler::getInstance()->interceptModule(
[
'module' => $moduleName,
'method' => '__construct',
'time' => microtime(true) - $timeStart,
'memory' => memory_get_usage() - $memoryStart,
]
);
return $result;
}
}