Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • Section
  • Stopwatch
  • StopwatchEvent
  • StopwatchPeriod
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class Section

Namespace: Symfony\Component\Stopwatch
Author: Fabien Potencier <fabien@symfony.com>
Internal: This class is for internal usage only
Located at stopwatch/Symfony/Component/Stopwatch/Stopwatch.php
Methods summary
public
# __construct( float|null $origin = null )

Constructor.

Constructor.

Parameters

$origin
float|null
$origin Set the origin of the events in this section, use null to set their origin to their start time
public Symfony\Component\Stopwatch\Section|null
# get( string $id )

Returns the child section.

Returns the child section.

Parameters

$id
string
$id The child section identifier

Returns

Symfony\Component\Stopwatch\Section|null
The child section or null when none found
public Symfony\Component\Stopwatch\Section
# open( string|null $id )

Creates or re-opens a child section.

Creates or re-opens a child section.

Parameters

$id
string|null
$id null to create a new section, the identifier to re-open an existing one.

Returns

Symfony\Component\Stopwatch\Section
A child section
public string
# getId( )

Returns

string
The identifier of the section
public Symfony\Component\Stopwatch\Section
# setId( string $id )

Sets the session identifier.

Sets the session identifier.

Parameters

$id
string
$id The session identifier

Returns

Symfony\Component\Stopwatch\Section
The current section
public Symfony\Component\Stopwatch\StopwatchEvent
# startEvent( string $name, string $category )

Starts an event.

Starts an event.

Parameters

$name
string
$name The event name
$category
string
$category The event category

Returns

Symfony\Component\Stopwatch\StopwatchEvent
The event
public Symfony\Component\Stopwatch\StopwatchEvent
# stopEvent( string $name )

Stops an event.

Stops an event.

Parameters

$name
string
$name The event name

Returns

Symfony\Component\Stopwatch\StopwatchEvent
The event

Throws

LogicException
When the event has not been started
public Symfony\Component\Stopwatch\StopwatchEvent
# lap( string $name )

Stops then restarts an event.

Stops then restarts an event.

Parameters

$name
string
$name The event name

Returns

Symfony\Component\Stopwatch\StopwatchEvent
The event

Throws

LogicException
When the event has not been started
public Symfony\Component\Stopwatch\StopwatchEvent[]
# getEvents( )

Returns the events from this section.

Returns the events from this section.

Returns

Symfony\Component\Stopwatch\StopwatchEvent[]
An array of StopwatchEvent instances
php-coveralls API documentation generated by ApiGen 2.8.0