10 const MARKER_BEGIN =
':begin';
11 const MARKER_END =
':end';
22 $this->getTreeNode($keys)[self::MARKER_BEGIN] = microtime();
32 $this->getTreeNode($keys)[self::MARKER_END] = microtime();
42 $node = $this->getTreeNode($keys);
43 return isset($node[self::MARKER_END]);
61 private function &getTreeNode(array
$keys) {
64 foreach ($keys as
$key) {
65 if (!isset($arr[$key])) {
begin(array $keys)
Record the start time of a period.
getTimes()
Get the tree of recorded start/end times.
Capture timing info for profiling.
end(array $keys)
Record the end time of a period.
hasEnded(array $keys)
Has the end of the period been recorded?