Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
helper.php
1
<?php
2
namespace
Bitrix\Main\Diag
;
3
4
class
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
}
Bitrix\Main\Diag\Helper
Definition
helper.php:5
Bitrix\Main\Diag\Helper\getCurrentMicrotime
static getCurrentMicrotime()
Definition
helper.php:11
Bitrix\Main\Diag\Helper\getBackTrace
static getBackTrace($limit=0, $options=null, $skip=1)
Definition
helper.php:26
Bitrix\Main\Diag
Definition
cachetracker.php:2
modules
main
lib
diag
helper.php
Создано системой
1.10.0