Interface: IDebugProfiler

Interface for debugging, tracing and profiling.

Extends

Known implementations

Authors

Oleg Schildt

Package

Source code

 

Methods
public

Clears the specified log file.

public

Clears all log files.

public

Logs a message to a standard debug output.

public

Logs a message to a standard profiling output and shows the time elapsed since the last call startProfilePoint or fixProfilePoint.

public

Initializes the debug profiler with parameters.

public

Logs a message to a standard profiling output and stores the current time.


Method: IDebugProfiler::clearLogFile()

public function clearLogFile(string $file_name): void;

Clears the specified log file.

Parameters

Name Pass type Value type Default value Description
$file_name by value string

The target file name.

Returns

void

Authors

Oleg Schildt

Source code

See also


Method: IDebugProfiler::clearLogFiles()

public function clearLogFiles(): void;

Clears all log files.

Returns

void

Authors

Oleg Schildt

Source code

See also


Method: IDebugProfiler::debugMessage()

public function debugMessage(string $message, bool $write_call_stack = false, string $file_name = "debug.log"): void;

Logs a message to a standard debug output.

Parameters

Name Pass type Value type Default value Description
$message by value string

Message to be logged.

$write_call_stack by value bool false

Flag that defines where the call stack should be written.

$file_name by value string "debug.log"

The target file name.

Returns

void

Throws

\Exception

It might throw an exception in the case of any errors.

Authors

Oleg Schildt

Source code


Method: IDebugProfiler::fixProfilePoint()

public function fixProfilePoint(string $message): void;

Logs a message to a standard profiling output and shows the time elapsed since the last call startProfilePoint or fixProfilePoint.

Parameters

Name Pass type Value type Default value Description
$message by value string

Message to be logged.

Returns

void

Throws

\Exception

It might throw an exception in the case of any errors.

Authors

Oleg Schildt

Source code

See also


Method: IDebugProfiler::init()

public function init(array $parameters): void;

Initializes the debug profiler with parameters.

Parameters

Name Pass type Value type Default value Description
$parameters by value array

The parameters may vary for each debug profiler.

Returns

void

Throws

\Exception

It might throw an exception in the case of any system errors.

Overrides

Authors

Oleg Schildt

Source code


Method: IDebugProfiler::startProfilePoint()

public function startProfilePoint(string $message): void;

Logs a message to a standard profiling output and stores the current time.

Parameters

Name Pass type Value type Default value Description
$message by value string

Message to be logged.

Returns

void

Throws

\Exception

It might throw an exception in the case of any errors.

Authors

Oleg Schildt

Source code

See also