Tideways.php
public static function watch($function, $category = null)
    {
        if (self::$extension === self::EXTENSION_TIDEWAYS) {
            self::$defaultOptions['watches'][$function] = $category;

            if ((self::$mode & self::MODE_TRACING) > 0) {
                tideways_span_watch($function, $category);
            }
        }
    }
public static function watch($function, $category = null)
    {
        if (self::$extension === self::EXTENSION_TIDEWAYS) {
            self::$defaultOptions['watches'][$function] = $category;

            if ((self::$mode & self::MODE_TRACING) > 0) {
                tideways_span_watch($function, $category);
            }
        }
    }
public static function watch ( $ function , $ category = null ) { if ( self :: $ extension === self :: EXTENSION_TIDEWAYS ) { self :: $ defaultOptions [ 'watches' ] [ $ function ] = $ category ; if ( ( self :: $ mode & self :: MODE_TRACING ) > 0 ) { tideways_span_watch ( $ function , $ category ) ; } } }
Watch a function for calls and create timeline spans around it.

@param string $function
@param string $category
Watch a function for calls and create timeline spans around it .