Documentation

SqlTracker

SqlTracker class provides for execution of \Iterator.

Method Description Available from version
writeFileLog Writes query text and portion of tracking into the log.
valid Portion for implementing \Iterator, create for preserving backward compatibility.
stopFileLog Stops logging.
startFileLog Starts logging.
setDepthBackTrace Sets tracking depth for a log entry.
rewind Portion for implementing \Iterator, create for preserving backward compatibility.
reset Clears all collected queries and resets execution time.
next Portion for implementing \Iterator, create for preserving backward compatibility.
key Portion for implementing \Iterator, create for preserving backward compatibility.
getTime Returns general time for query execution.
getQueries Returns array with collected objects SqlTrackerQuery.
getNewTrackerQuery Creates new instance for the object SqlTrackerQuery
getDepthBackTrace Returns tracking depth for logging.
getCounter Returns number of executed queries.
current Portion for implementing \Iterator, create for preserving backward compatibility.
addTime Used by SqlTrackerQuery for tracking general execution time.


© «Bitrix24», 2001-2024
Up