src/Support/Profiler.php
/**
	 * Starts a timer for the specified profile name.
	 *
	 * @param string $profile
	 * @param mixed $data Optional data to attach to the profile.
	 */
Starts a timer for the specified profile name.
@param string $profile
@param mixed $data Optional data to attach to the profile.
Starts a timer for the specified profile name . @param string $profile @param mixed $data Optional data to attach to the profile .
public static function start($profile, $data = null) {
		if (!isset(static::$active[$profile])) {
			static::$active[$profile] = array(
				'start' => static::getTime(),
				'end' => null
			);
			if (!is_null($data)) {
				static::$active[$profile]['data'] = $data;
			}
			if (!isset(static::$records[$profile])) {
				static::$records[$profile] = array();
			}
			if (!isset(static::$totals[$profile])) {
				static::$totals[$profile] = 0;
			}
		}
	}
public static function start ( $ profile , $ data = null ) { if ( ! isset ( static :: $ active [ $ profile ] ) ) { static :: $ active [ $ profile ] = array ( 'start' => static :: getTime ( ) , 'end' => null ) ; if ( ! is_null ( $ data ) ) { static :: $ active [ $ profile ] [ 'data' ] = $ data ; } if ( ! isset ( static :: $ records [ $ profile ] ) ) { static :: $ records [ $ profile ] = array ( ) ; } if ( ! isset ( static :: $ totals [ $ profile ] ) ) { static :: $ totals [ $ profile ] = 0 ; } } }
Starts a timer for the specified profile name.
Starts a timer for the specified profile name .