Zend Code Tracing - PHP API

This topic lists the PHP API functions of the Zend Code Tracing.

Zend Code Tracing Functions

Function

Description

zend_codetracing_options

Sets and retrieves the tracing options.

zend_codetracing_dump

Enables or disables production of trace dump.

zend_codetracing_event

Creates a record of the event in the trace log.

zend_codetracing_dump_name

Sets/retrieves the current dump name.

zend_codetracing_dump_base

Retrieves the current dump base - prefix from which dump names are created

zend_codetracing_options

Sets and retrieves the tracing options.

Available Since Version: 4.0

Parameter

Type

Required

Description

options

string

Yes

Optional: set tracing options.

Return Value: int - Old value of the options.

zend_codetracing_dump

Enables or disables production of trace dump.

Available Since Version: 4.0

Parameter

Type

Required

Description

dump

boolean

Yes

Optional: enable or disable trace dump. Default is enable.

zend_codetracing_event

Creates a record of the event in the trace log.

Available Since Version: 4.0

Return Value: array - Array containing the trace dump ID number and event number inside the dump.

zend_codetracing_dump_name

Sets/retrieves the current dump name.

Available Since Version: 4.0

Parameter

Type

Required

Description

name

string

Yes

Optional: new dump name suffix.

Return Value: array - Current dump name (full path).

zend_codetracing_dump_base

Retrieves the current dump base - prefix from which dump names are created

Available Since Version: 4.0

Return Value: array - Current dump base (full path).