Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/lib/diag/ |
Upload File : |
<?php namespace Bitrix\Main\Diag; class Helper { /** * Returns current unix timestamp with microseconds. * * @return float */ public static function getCurrentMicrotime() { return microtime(true); } /** * Returns array backtrace. * * @param integer $limit Maximum stack elements to return. * @param null|integer $options Passed to debug_backtrace options. * @param integer $skip How many stack frames to skip. * * @return array * @see debug_backtrace */ public static function getBackTrace($limit = 0, $options = null, $skip = 1) { if(!defined("DEBUG_BACKTRACE_PROVIDE_OBJECT")) { define("DEBUG_BACKTRACE_PROVIDE_OBJECT", 1); } if ($options === null) { $options = ~DEBUG_BACKTRACE_PROVIDE_OBJECT; } $trace = debug_backtrace($options, ($limit > 0? $limit + $skip : 0)); if ($limit > 0) { return array_slice($trace, $skip, $limit); } return array_slice($trace, $skip); } }