2017 © Pedro Peláez
 

library laravel-performance

laravel performance and sql dump.

image

weiyongsheng/laravel-performance

laravel performance and sql dump.

  • Saturday, April 15, 2017
  • by weiyongsheng
  • Repository
  • 1 Watchers
  • 2 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 5 % Grown

The README.md

Laravel Performance

  • 计算代码块的执行时长
  • 打印代码块的sql

Usage

  • 计算代码块的执行时长
pf()->auto('search1');
#代码块
pf()->auto('search1');
var_dump(pf()->getBenchmarkTime());

##### or #####

pf()->start('search2');
#代码块
pf()->end('search2');
var_dump(pf()->getBenchmarkTime());
  • 打印代码块的sql
pf()->startRecordQueries();
#sql查询代码
$sql = pf()->getSql();
var_dump($sql);

The Versions

15/04 2017

1.4.x-dev

1.4.9999999.9999999-dev

laravel performance and sql dump.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar weiyongsheng

laravel sql mysql dump performance print

15/04 2017

dev-master

9999999-dev

laravel performance and sql dump.

  Sources   Download

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar weiyongsheng

laravel sql mysql dump performance print

15/04 2017

1.4.1

1.4.1.0

laravel performance and sql dump.

  Sources   Download

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar weiyongsheng

laravel sql mysql dump performance print

20/02 2017

1.1.x-dev

1.1.9999999.9999999-dev

laravel performance and sql dump.

  Sources   Download

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar weiyongsheng

laravel sql mysql dump performance print

20/02 2017

1.1.1

1.1.1.0

laravel performance and sql dump.

  Sources   Download

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar weiyongsheng

laravel sql mysql dump performance print