Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
helper.php
1<?php
2namespace Bitrix\Main\Diag;
3
4class Helper
5{
11 public static function getCurrentMicrotime()
12 {
13 return microtime(true);
14 }
15
26 public static function getBackTrace($limit = 0, $options = null, $skip = 1)
27 {
28 if(!defined("DEBUG_BACKTRACE_PROVIDE_OBJECT"))
29 {
30 define("DEBUG_BACKTRACE_PROVIDE_OBJECT", 1);
31 }
32
33 if ($options === null)
34 {
35 $options = ~DEBUG_BACKTRACE_PROVIDE_OBJECT;
36 }
37
38 $trace = debug_backtrace($options, ($limit > 0? $limit + $skip : 0));
39
40 if ($limit > 0)
41 {
42 return array_slice($trace, $skip, $limit);
43 }
44
45 return array_slice($trace, $skip);
46 }
47}
static getCurrentMicrotime()
Definition helper.php:11
static getBackTrace($limit=0, $options=null, $skip=1)
Definition helper.php:26