Download the PHP package wol-soft/php-performance-timer without Composer

On this page you can find all versions of the php package wol-soft/php-performance-timer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-performance-timer

Latest Version Minimum PHP Version Maintainability Test Coverage Build Status Coverage Status MIT License

php-performance-timer

Provides functions to collect processing times inside your application

Requirements

Installation

The recommended way to install php-json-schema-model-generator is through Composer:

Usage

To start a timer simply call the start method with a key. The key will be used to identify the timer:

Finish the timer with the end method:

By default, the timer measurements of a process will be collected and written to /tmp/performance_timer.log (may vary if called from apache as sys_get_temp_dir is used by default). If you want to fetch the results manually use Timer::handleResults.

The result will be a csv with the timer key and the duration between start and end (in ms):

Namespaced timers

Each start and end method call takes an optional second parameter $namespace. By providing namespaces to your timers you can enable/disable measurements in specific components.

Only the timers with namespaces starting with the configured namespace are executed. Timers without a namespace will always be executed. If the option profileNamespace is set to false no timer will be executed.

Exceptions

By default the timer execution may throw exceptions (eg. if a timer is started twice). If you don't want the timer to break your execution flow you can set the option throwExceptions to false. In this case the timer will simply ignore invalid calls.

Custom data collection

To collect additional data (eg. memory consumption, start and end timestamps, ...), you can add a timer plugin:

The data returned by $callbackStart will be passed to $callbackEnd. The data returned by $callbackEnd will be included in the generated CSV file. By returning an array from $callbackEnd you can add multiple columns to the CSV.


All versions of php-performance-timer with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wol-soft/php-performance-timer contains the following files

Loading the files please wait ....