All Projects → symfony → Stopwatch

symfony / Stopwatch

Licence: mit
The Stopwatch component provides a way to profile code.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to Stopwatch

Polyfill Util
This component provides binary-safe string functions, using the mbstring extension when available.
Stars: ✭ 1,364 (-42.88%)
Mutual labels:  symfony, symfony-component, component
Property Access
The PropertyAccess component provides function to read and write from/to an object or array using a simple string notation.
Stars: ✭ 2,362 (-1.09%)
Mutual labels:  symfony, symfony-component, component
Polyfill Php55
This component provides functions unavailable in releases prior to PHP 5.5.
Stars: ✭ 105 (-95.6%)
Mutual labels:  symfony, symfony-component, component
Intl
A PHP replacement layer for the C intl extension that also provides access to the localization data of the ICU library.
Stars: ✭ 2,323 (-2.72%)
Mutual labels:  symfony, symfony-component, component
Polyfill Php73
This component provides functions unavailable in releases prior to PHP 7.3.
Stars: ✭ 2,121 (-11.18%)
Mutual labels:  symfony, symfony-component, component
Polyfill Php54
This component provides functions unavailable in releases prior to PHP 5.4.
Stars: ✭ 93 (-96.11%)
Mutual labels:  symfony, symfony-component, component
Var Exporter
The VarExporter component allows exporting any serializable PHP data structure to plain PHP code. While doing so, it preserves all the semantics associated with the serialization mechanism of PHP (__wakeup, __sleep, Serializable).
Stars: ✭ 1,616 (-32.33%)
Mutual labels:  symfony, symfony-component, component
Security
The Security component provides a complete security system for your web application.
Stars: ✭ 1,195 (-49.96%)
Mutual labels:  symfony, symfony-component, component
Property Info
PropertyInfo extracts information about PHP class' properties using metadata of popular sources.
Stars: ✭ 1,747 (-26.84%)
Mutual labels:  symfony, symfony-component, component
Polyfill Iconv
This component provides a native PHP implementation of the php.net/iconv functions.
Stars: ✭ 1,621 (-32.12%)
Mutual labels:  symfony, symfony-component, component
Polyfill Intl Icu
This component provides a collection of functions/classes using the symfony/intl package when the Intl extension is not installed.
Stars: ✭ 2,287 (-4.23%)
Mutual labels:  symfony, symfony-component, component
Mime
The MIME component allows manipulating MIME types.
Stars: ✭ 2,174 (-8.96%)
Mutual labels:  symfony, symfony-component, component
Security Core
Security provides an infrastructure for sophisticated authorization systems, which makes it possible to easily separate the actual authorization logic from so called user providers that hold the users credentials. It is inspired by the Java Spring framework.
Stars: ✭ 1,264 (-47.07%)
Mutual labels:  symfony, symfony-component, component
Polyfill
PHP polyfills
Stars: ✭ 1,333 (-44.18%)
Mutual labels:  symfony, symfony-component, component
Security Csrf
The Security CSRF (cross-site request forgery) component provides a class CsrfTokenManager for generating and validating CSRF tokens.
Stars: ✭ 1,220 (-48.91%)
Mutual labels:  symfony, symfony-component, component
Polyfill Php56
This component provides functions unavailable in releases prior to PHP 5.6.
Stars: ✭ 1,470 (-38.44%)
Mutual labels:  symfony, symfony-component, component
Http Client
The HttpClient component provides powerful methods to fetch HTTP resources synchronously or asynchronously.
Stars: ✭ 1,186 (-50.34%)
Mutual labels:  symfony, symfony-component, component
Console
The Console component eases the creation of beautiful and testable command line interfaces.
Stars: ✭ 8,988 (+276.38%)
Mutual labels:  symfony, symfony-component, component
Error Handler
The ErrorHandler component provides tools to manage errors and ease debugging PHP code.
Stars: ✭ 1,852 (-22.45%)
Mutual labels:  symfony, symfony-component, component
Serializer
With the Serializer component it's possible to handle serializing data structures, including object graphs, into array structures or other formats like XML and JSON. It can also handle deserializing XML and JSON back to object graphs.
Stars: ✭ 2,021 (-15.37%)
Mutual labels:  symfony, symfony-component, component

Stopwatch Component

The Stopwatch component provides a way to profile code.

Getting Started

$ composer require symfony/stopwatch
use Symfony\Component\Stopwatch\Stopwatch;

$stopwatch = new Stopwatch();

// optionally group events into sections (e.g. phases of the execution)
$stopwatch->openSection();

// starts event named 'eventName'
$stopwatch->start('eventName');

// ... run your code here

// optionally, start a new "lap" time
$stopwatch->lap('foo');

// ... run your code here

$event = $stopwatch->stop('eventName');

$stopwatch->stopSection('phase_1');

Resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].