Bitrix API

Diag

FinalYes

Table of Contents

Constants

MEMORY_PRINT_AMOUNT  = 0x1
MEMORY_PRINT_DIFF  = 0x10
MEMORY_PRINT_PEAK_USAGE  = 0x100
MEMORY_SKIP  = 0x0
SQL_COUNT  = 0x1
SQL_DETECT_LIKE  = 0x100
SQL_PRINT_ALL  = 0x10
SQL_SKIP  = 0x0

Methods

collectDebugInfo()  : void
Collects debug info (sql queries, errors, etc).
getInstance()  : Diag
Gets instance of Diag.
log()  : void
Logs data in common log (@see AddMessage2Log).
logDebugInfo()  : void
Logs debug info (sql queries, errors, etc).
setEnableErrorHandler()  : $this
Sets value to status of enabling error handler.
setEnableTimeTracker()  : $this
Sets value to time tracker.
setExclusiveUserId()  : $this
Sets user id who can use class Diag. If set null then everybody can use it.
setFilePathPatternToCatchError()  : mixed
Sets pattern which uses to catch error in error handler.
setMemoryBehavior()  : $this
Sets memory behavior.
setShowOnDisplay()  : $this
Sets value to status of show log message on display.
setSqlBehavior()  : $this
Sets sql behavior.

Constants

MEMORY_PRINT_AMOUNT

public mixed MEMORY_PRINT_AMOUNT = 0x1

MEMORY_PRINT_DIFF

public mixed MEMORY_PRINT_DIFF = 0x10

MEMORY_PRINT_PEAK_USAGE

public mixed MEMORY_PRINT_PEAK_USAGE = 0x100

MEMORY_SKIP

public mixed MEMORY_SKIP = 0x0

SQL_COUNT

public mixed SQL_COUNT = 0x1

SQL_DETECT_LIKE

public mixed SQL_DETECT_LIKE = 0x100

SQL_PRINT_ALL

public mixed SQL_PRINT_ALL = 0x10

SQL_SKIP

public mixed SQL_SKIP = 0x0

Methods

collectDebugInfo()

Collects debug info (sql queries, errors, etc).

public collectDebugInfo(mixed $uniqueId[, null $label = null ]) : void
Parameters
$uniqueId : mixed

Id of segment.

$label : null = null

Label for human.

getInstance()

Gets instance of Diag.

public static getInstance() : Diag
Return values
Diag

log()

Logs data in common log (@see AddMessage2Log).

public log(mixed $data) : void
Parameters
$data : mixed

Mixed data to log.

logDebugInfo()

Logs debug info (sql queries, errors, etc).

public logDebugInfo(mixed $uniqueId[, null $label = null ]) : void
Parameters
$uniqueId : mixed

Id of segment.

$label : null = null

Label for human.

Tags
throws
SystemException

setEnableErrorHandler()

Sets value to status of enabling error handler.

public setEnableErrorHandler(bool $enableErrorHandler) : $this
Parameters
$enableErrorHandler : bool

Value.

Return values
$this

setEnableTimeTracker()

Sets value to time tracker.

public setEnableTimeTracker(bool $enableTimeTracker) : $this
Parameters
$enableTimeTracker : bool

Value.

Return values
$this

setExclusiveUserId()

Sets user id who can use class Diag. If set null then everybody can use it.

public setExclusiveUserId(int $exclusiveUserId) : $this
Parameters
$exclusiveUserId : int

Id of user.

Return values
$this

setFilePathPatternToCatchError()

Sets pattern which uses to catch error in error handler.

public setFilePathPatternToCatchError(string $filePathPatternToCatchError) : mixed
Parameters
$filePathPatternToCatchError : string

Pattern.

setMemoryBehavior()

Sets memory behavior.

public setMemoryBehavior(int $memoryBehavior) : $this
Parameters
$memoryBehavior : int

Memory behavior.

Return values
$this

setShowOnDisplay()

Sets value to status of show log message on display.

public setShowOnDisplay(bool $showOnDisplay) : $this
Parameters
$showOnDisplay : bool

Value.

Return values
$this

setSqlBehavior()

Sets sql behavior.

public setSqlBehavior(int $sqlBehavior) : $this
Parameters
$sqlBehavior : int

Sql behavior.

Return values
$this

        
On this page

Search results