Modules

Profiler
extends Kohana_Profiler

Provides simple benchmarking and profiling. To display the statistics that have been collected, load the profiler/stats View:

echo View::factory('profiler/stats');
package
Kohana
category
Helpers
author
Kohana Team
copyright
© 2009-2012 Kohana Team
license
http://kohanaframework.org/license

Class declared in SYSPATH/classes/profiler.php on line 3.

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(248) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1734902261.0369
        "start_memory" => integer 581944
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0369
        "start_memory" => integer 584160
        "stop_time" => float 1734902261.0379
        "stop_memory" => integer 584824
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.038
        "start_memory" => integer 587248
        "stop_time" => float 1734902261.039
        "stop_memory" => integer 587856
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.039
        "start_memory" => integer 596072
        "stop_time" => float 1734902261.0401
        "stop_memory" => integer 596624
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0401
        "start_memory" => integer 599040
        "stop_time" => float 1734902261.0414
        "stop_memory" => integer 599632
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0414
        "start_memory" => integer 603688
        "stop_time" => float 1734902261.0422
        "stop_memory" => integer 604240
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0423
        "start_memory" => integer 606624
        "stop_time" => float 1734902261.0433
        "stop_memory" => integer 607208
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0434
        "start_memory" => integer 618480
        "stop_time" => float 1734902261.0444
        "stop_memory" => integer 619040
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0444
        "start_memory" => integer 621408
        "stop_time" => float 1734902261.0455
        "stop_memory" => integer 622056
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0455
        "start_memory" => integer 640936
        "stop_time" => float 1734902261.0465
        "stop_memory" => integer 641512
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0465
        "start_memory" => integer 643904
        "stop_time" => float 1734902261.0478
        "stop_memory" => integer 644480
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0479
        "start_memory" => integer 658000
        "stop_time" => float 1734902261.0492
        "stop_memory" => integer 658544
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0492
        "start_memory" => integer 660888
        "stop_time" => float 1734902261.0504
        "stop_memory" => integer 661464
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0505
        "start_memory" => integer 673840
        "stop_time" => float 1734902261.0515
        "stop_memory" => integer 674440
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0516
        "start_memory" => integer 675488
        "stop_time" => float 1734902261.0525
        "stop_memory" => integer 676024
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0525
        "start_memory" => integer 678376
        "stop_time" => float 1734902261.0536
        "stop_memory" => integer 678952
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0537
        "start_memory" => integer 682760
        "stop_time" => float 1734902261.0546
        "stop_memory" => integer 683440
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0546
        "start_memory" => integer 685784
        "stop_time" => float 1734902261.0557
        "stop_memory" => integer 686360
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0558
        "start_memory" => integer 709944
        "stop_time" => float 1734902261.0567
        "stop_memory" => integer 710544
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0568
        "start_memory" => integer 712944
        "stop_time" => float 1734902261.0578
        "stop_memory" => integer 713544
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0578
        "start_memory" => integer 722696
        "stop_time" => float 1734902261.0589
        "stop_memory" => integer 723200
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0589
        "start_memory" => integer 723840
        "stop_time" => float 1734902261.0599
        "stop_memory" => integer 724416
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0602
        "start_memory" => integer 878240
        "stop_time" => float 1734902261.0613
        "stop_memory" => integer 878824
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0614
        "start_memory" => integer 881224
        "stop_time" => float 1734902261.0625
        "stop_memory" => integer 881824
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0626
        "start_memory" => integer 882808
        "stop_time" => float 1734902261.0635
        "stop_memory" => integer 883384
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0636
        "start_memory" => integer 885784
        "stop_time" => float 1734902261.0646
        "stop_memory" => integer 886384
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0646
        "start_memory" => integer 892640
        "stop_time" => float 1734902261.0655
        "stop_memory" => integer 893200
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0655
        "start_memory" => integer 895568
        "stop_time" => float 1734902261.0665
        "stop_memory" => integer 896160
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0666
        "start_memory" => integer 919344
        "stop_time" => float 1734902261.0676
        "stop_memory" => integer 919880
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0676
        "start_memory" => integer 922224
        "stop_time" => float 1734902261.0688
        "stop_memory" => integer 922800
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.0696
        "start_memory" => integer 945192
        "stop_time" => float 1734902261.0707
        "stop_memory" => integer 945792
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7491
        "start_memory" => integer 986704
        "stop_time" => float 1734902261.7493
        "stop_memory" => integer 987280
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7494
        "start_memory" => integer 989632
        "stop_time" => float 1734902261.7496
        "stop_memory" => integer 990472
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.75
        "start_memory" => integer 1002040
        "stop_time" => float 1734902261.7502
        "stop_memory" => integer 1002616
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7502
        "start_memory" => integer 1005008
        "stop_time" => float 1734902261.7505
        "stop_memory" => integer 1005600
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7508
        "start_memory" => integer 1017448
        "stop_time" => float 1734902261.7516
        "stop_memory" => integer 1018016
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7516
        "start_memory" => integer 1020392
        "stop_time" => float 1734902261.7525
        "stop_memory" => integer 1020968
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7528
        "start_memory" => integer 1033112
        "stop_time" => float 1734902261.7533
        "stop_memory" => integer 1033704
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7533
        "start_memory" => integer 1039568
        "stop_time" => float 1734902261.7537
        "stop_memory" => integer 1040136
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7537
        "start_memory" => integer 1042528
        "stop_time" => float 1734902261.7542
        "stop_memory" => integer 1043120
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7543
        "start_memory" => integer 1051992
        "stop_time" => float 1734902261.7547
        "stop_memory" => integer 1052592
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7548
        "start_memory" => integer 1058912
        "stop_time" => float 1734902261.7552
        "stop_memory" => integer 1059488
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7553
        "start_memory" => integer 1064560
        "stop_time" => float 1734902261.7558
        "stop_memory" => integer 1065160
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7559
        "start_memory" => integer 1070648
        "stop_time" => float 1734902261.7563
        "stop_memory" => integer 1071224
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7564
        "start_memory" => integer 1079760
        "stop_time" => float 1734902261.7569
        "stop_memory" => integer 1080344
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.757
        "start_memory" => integer 1085728
        "stop_time" => float 1734902261.7574
        "stop_memory" => integer 1086312
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7575
        "start_memory" => integer 1093360
        "stop_time" => float 1734902261.7579
        "stop_memory" => integer 1093960
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.758
        "start_memory" => integer 1101152
        "stop_time" => float 1734902261.7584
        "stop_memory" => integer 1101744
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7585
        "start_memory" => integer 1108232
        "stop_time" => float 1734902261.759
        "stop_memory" => integer 1108824
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.759
        "start_memory" => integer 1114824
        "stop_time" => float 1734902261.7595
        "stop_memory" => integer 1115416
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7596
        "start_memory" => integer 1151712
        "stop_time" => float 1734902261.76
        "stop_memory" => integer 1152288
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7601
        "start_memory" => integer 1160328
        "stop_time" => float 1734902261.7607
        "stop_memory" => integer 1160928
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7609
        "start_memory" => integer 1168352
        "stop_time" => float 1734902261.7613
        "stop_memory" => integer 1168928
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7614
        "start_memory" => integer 1178296
        "stop_time" => float 1734902261.7618
        "stop_memory" => integer 1178880
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7619
        "start_memory" => integer 1187560
        "stop_time" => float 1734902261.7622
        "stop_memory" => integer 1188112
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7622
        "start_memory" => integer 1190472
        "stop_time" => float 1734902261.7625
        "stop_memory" => integer 1191056
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7626
        "start_memory" => integer 1202936
        "stop_time" => float 1734902261.7635
        "stop_memory" => integer 1203496
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7635
        "start_memory" => integer 1205856
        "stop_time" => float 1734902261.7647
        "stop_memory" => integer 1206424
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7661
        "start_memory" => integer 1250056
        "stop_time" => float 1734902261.767
        "stop_memory" => integer 1250640
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7709
        "start_memory" => integer 1251240
        "stop_time" => float 1734902261.7712
        "stop_memory" => integer 1251816
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7713
        "start_memory" => integer 1254224
        "stop_time" => float 1734902261.7717
        "stop_memory" => integer 1254816
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.774
        "start_memory" => integer 1266784
        "stop_time" => float 1734902261.7743
        "stop_memory" => integer 1267368
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7743
        "start_memory" => integer 1269792
        "stop_time" => float 1734902261.7748
        "stop_memory" => integer 1270392
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7771
        "start_memory" => integer 1282256
        "stop_time" => float 1734902261.7775
        "stop_memory" => integer 1282816
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7775
        "start_memory" => integer 1285208
        "stop_time" => float 1734902261.778
        "stop_memory" => integer 1286312
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.778
        "start_memory" => integer 1296168
        "stop_time" => float 1734902261.7784
        "stop_memory" => integer 1296768
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7809
        "start_memory" => integer 1305432
        "stop_time" => float 1734902261.7813
        "stop_memory" => integer 1306008
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7813
        "start_memory" => integer 1308424
        "stop_time" => float 1734902261.7817
        "stop_memory" => integer 1309008
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7892
        "start_memory" => integer 1329016
        "stop_time" => float 1734902261.7895
        "stop_memory" => integer 1329600
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7896
        "start_memory" => integer 1332024
        "stop_time" => float 1734902261.79
        "stop_memory" => integer 1332624
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.79
        "start_memory" => integer 1341504
        "stop_time" => float 1734902261.7904
        "stop_memory" => integer 1342080
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7908
        "start_memory" => integer 1349056
        "stop_time" => float 1734902261.7911
        "stop_memory" => integer 1349624
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7912
        "start_memory" => integer 1352008
        "stop_time" => float 1734902261.7915
        "stop_memory" => integer 1352600
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7919
        "start_memory" => integer 1365368
        "stop_time" => float 1734902261.7922
        "stop_memory" => integer 1365952
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7922
        "start_memory" => integer 1368352
        "stop_time" => float 1734902261.7927
        "stop_memory" => integer 1368936
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7954
        "start_memory" => integer 1381168
        "stop_time" => float 1734902261.7957
        "stop_memory" => integer 1381736
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7958
        "start_memory" => integer 1384136
        "stop_time" => float 1734902261.7961
        "stop_memory" => integer 1384728
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7965
        "start_memory" => integer 1393544
        "stop_time" => float 1734902261.7974
        "stop_memory" => integer 1394080
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7975
        "start_memory" => integer 1396432
        "stop_time" => float 1734902261.7985
        "stop_memory" => integer 1397008
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.7992
        "start_memory" => integer 1399680
        "stop_time" => float 1734902261.8
        "stop_memory" => integer 1400280
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8
        "start_memory" => integer 1402688
        "stop_time" => float 1734902261.8006
        "stop_memory" => integer 1403288
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8026
        "start_memory" => integer 1427448
        "stop_time" => float 1734902261.803
        "stop_memory" => integer 1428040
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8033
        "start_memory" => integer 1432704
        "stop_time" => float 1734902261.8044
        "stop_memory" => integer 1433264
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8044
        "start_memory" => integer 1435664
        "stop_time" => float 1734902261.8056
        "stop_memory" => integer 1436256
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8074
        "start_memory" => integer 1445904
        "stop_time" => float 1734902261.8075
        "stop_memory" => integer 1446488
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8085
        "start_memory" => integer 1450288
        "stop_time" => float 1734902261.809
        "stop_memory" => integer 1450856
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.809
        "start_memory" => integer 1453232
        "stop_time" => float 1734902261.8096
        "stop_memory" => integer 1453824
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8105
        "start_memory" => integer 1499200
        "stop_time" => float 1734902261.8111
        "stop_memory" => integer 1499784
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8111
        "start_memory" => integer 1502224
        "stop_time" => float 1734902261.8118
        "stop_memory" => integer 1502824
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.812
        "start_memory" => integer 1517056
        "stop_time" => float 1734902261.8126
        "stop_memory" => integer 1517648
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8126
        "start_memory" => integer 1520080
        "stop_time" => float 1734902261.8133
        "stop_memory" => integer 1520672
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8141
        "start_memory" => integer 1524576
        "stop_time" => float 1734902261.8147
        "stop_memory" => integer 1525152
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8147
        "start_memory" => integer 1527568
        "stop_time" => float 1734902261.8153
        "stop_memory" => integer 1528168
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8157
        "start_memory" => integer 1572536
        "stop_time" => float 1734902261.8163
        "stop_memory" => integer 1573128
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8163
        "start_memory" => integer 1575560
        "stop_time" => float 1734902261.817
        "stop_memory" => integer 1576168
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8171
        "start_memory" => integer 1580648
        "stop_time" => float 1734902261.8176
        "stop_memory" => integer 1581216
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8177
        "start_memory" => integer 1583624
        "stop_time" => float 1734902261.8183
        "stop_memory" => integer 1584224
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8187
        "start_memory" => integer 1611816
        "stop_time" => float 1734902261.8192
        "stop_memory" => integer 1612392
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8193
        "start_memory" => integer 1614800
        "stop_time" => float 1734902261.82
        "stop_memory" => integer 1615400
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8203
        "start_memory" => integer 1636656
        "stop_time" => float 1734902261.8209
        "stop_memory" => integer 1637232
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.821
        "start_memory" => integer 1639632
        "stop_time" => float 1734902261.8216
        "stop_memory" => integer 1640232
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8221
        "start_memory" => integer 1652160
        "stop_time" => float 1734902261.8227
        "stop_memory" => integer 1652752
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8227
        "start_memory" => integer 1655192
        "stop_time" => float 1734902261.8234
        "stop_memory" => integer 1655800
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8238
        "start_memory" => integer 1671384
        "stop_time" => float 1734902261.8245
        "stop_memory" => integer 1671984
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8245
        "start_memory" => integer 1674472
        "stop_time" => float 1734902261.8253
        "stop_memory" => integer 1675088
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8253
        "start_memory" => integer 1679648
        "stop_time" => float 1734902261.826
        "stop_memory" => integer 1680240
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.826
        "start_memory" => integer 1682704
        "stop_time" => float 1734902261.8268
        "stop_memory" => integer 1683320
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8274
        "start_memory" => integer 1728888
        "stop_time" => float 1734902261.8282
        "stop_memory" => integer 1729480
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8282
        "start_memory" => integer 1731968
        "stop_time" => float 1734902261.829
        "stop_memory" => integer 1732584
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8294
        "start_memory" => integer 1752432
        "stop_time" => float 1734902261.8301
        "stop_memory" => integer 1753024
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8301
        "start_memory" => integer 1755504
        "stop_time" => float 1734902261.831
        "stop_memory" => integer 1756104
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8315
        "start_memory" => integer 1774640
        "stop_time" => float 1734902261.8321
        "stop_memory" => integer 1775240
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8322
        "start_memory" => integer 1777712
        "stop_time" => float 1734902261.8329
        "stop_memory" => integer 1778328
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8334
        "start_memory" => integer 1821072
        "stop_time" => float 1734902261.8341
        "stop_memory" => integer 1821664
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8341
        "start_memory" => integer 1824136
        "stop_time" => float 1734902261.8349
        "stop_memory" => integer 1824752
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.836
        "start_memory" => integer 1852640
        "stop_time" => float 1734902261.8366
        "stop_memory" => integer 1853216
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8366
        "start_memory" => integer 1855656
        "stop_time" => float 1734902261.8374
        "stop_memory" => integer 1856264
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8379
        "start_memory" => integer 1871880
        "stop_time" => float 1734902261.8388
        "stop_memory" => integer 1872400
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8388
        "start_memory" => integer 1874760
        "stop_time" => float 1734902261.8398
        "stop_memory" => integer 1875336
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8402
        "start_memory" => integer 1890456
        "stop_time" => float 1734902261.8407
        "stop_memory" => integer 1891024
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8407
        "start_memory" => integer 1893384
        "stop_time" => float 1734902261.8413
        "stop_memory" => integer 1893968
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8435
        "start_memory" => integer 1900896
        "stop_time" => float 1734902261.8445
        "stop_memory" => integer 1901456
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8445
        "start_memory" => integer 1903816
        "stop_time" => float 1734902261.8455
        "stop_memory" => integer 1904400
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8469
        "start_memory" => integer 1911048
        "stop_time" => float 1734902261.8478
        "stop_memory" => integer 1911592
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8478
        "start_memory" => integer 1913952
        "stop_time" => float 1734902261.8489
        "stop_memory" => integer 1914528
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8493
        "start_memory" => integer 1916808
        "stop_time" => float 1734902261.8502
        "stop_memory" => integer 1917360
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8502
        "start_memory" => integer 1919704
        "stop_time" => float 1734902261.8513
        "stop_memory" => integer 1920280
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8517
        "start_memory" => integer 1926720
        "stop_time" => float 1734902261.8526
        "stop_memory" => integer 1927272
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8526
        "start_memory" => integer 1929616
        "stop_time" => float 1734902261.8536
        "stop_memory" => integer 1931216
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8542
        "start_memory" => integer 1942304
        "stop_time" => float 1734902261.8551
        "stop_memory" => integer 1942872
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8551
        "start_memory" => integer 1945240
        "stop_time" => float 1734902261.8561
        "stop_memory" => integer 1945824
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8573
        "start_memory" => integer 1952176
        "stop_time" => float 1734902261.8583
        "stop_memory" => integer 1952720
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8583
        "start_memory" => integer 1955088
        "stop_time" => float 1734902261.8594
        "stop_memory" => integer 1955664
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8601
        "start_memory" => integer 1960552
        "stop_time" => float 1734902261.8613
        "stop_memory" => integer 1961136
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8613
        "start_memory" => integer 1963528
        "stop_time" => float 1734902261.8625
        "stop_memory" => integer 1964120
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8629
        "start_memory" => integer 1978720
        "stop_time" => float 1734902261.864
        "stop_memory" => integer 1979288
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8641
        "start_memory" => integer 1981704
        "stop_time" => float 1734902261.8653
        "stop_memory" => integer 1982296
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8657
        "start_memory" => integer 1996576
        "stop_time" => float 1734902261.8668
        "stop_memory" => integer 1997144
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8668
        "start_memory" => integer 1999560
        "stop_time" => float 1734902261.868
        "stop_memory" => integer 2000152
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8685
        "start_memory" => integer 2014408
        "stop_time" => float 1734902261.8697
        "stop_memory" => integer 2014976
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8698
        "start_memory" => integer 2017392
        "stop_time" => float 1734902261.871
        "stop_memory" => integer 2017984
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8714
        "start_memory" => integer 2032256
        "stop_time" => float 1734902261.8726
        "stop_memory" => integer 2032824
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8727
        "start_memory" => integer 2035240
        "stop_time" => float 1734902261.8739
        "stop_memory" => integer 2035832
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8743
        "start_memory" => integer 2050088
        "stop_time" => float 1734902261.8755
        "stop_memory" => integer 2050656
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8756
        "start_memory" => integer 2053072
        "stop_time" => float 1734902261.8769
        "stop_memory" => integer 2053664
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8774
        "start_memory" => integer 2067920
        "stop_time" => float 1734902261.8785
        "stop_memory" => integer 2068488
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8785
        "start_memory" => integer 2070904
        "stop_time" => float 1734902261.8798
        "stop_memory" => integer 2071496
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8803
        "start_memory" => integer 2085768
        "stop_time" => float 1734902261.8814
        "stop_memory" => integer 2086336
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8815
        "start_memory" => integer 2088752
        "stop_time" => float 1734902261.8827
        "stop_memory" => integer 2089344
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8831
        "start_memory" => integer 2103600
        "stop_time" => float 1734902261.8842
        "stop_memory" => integer 2104168
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8843
        "start_memory" => integer 2106584
        "stop_time" => float 1734902261.8857
        "stop_memory" => integer 2107176
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8862
        "start_memory" => integer 2121528
        "stop_time" => float 1734902261.8873
        "stop_memory" => integer 2122096
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8874
        "start_memory" => integer 2124512
        "stop_time" => float 1734902261.8888
        "stop_memory" => integer 2125104
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8893
        "start_memory" => integer 2139360
        "stop_time" => float 1734902261.8904
        "stop_memory" => integer 2139928
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8905
        "start_memory" => integer 2142344
        "stop_time" => float 1734902261.8917
        "stop_memory" => integer 2142936
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8921
        "start_memory" => integer 2157192
        "stop_time" => float 1734902261.8933
        "stop_memory" => integer 2157760
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8933
        "start_memory" => integer 2160176
        "stop_time" => float 1734902261.8946
        "stop_memory" => integer 2160768
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8949
        "start_memory" => integer 2175008
        "stop_time" => float 1734902261.8961
        "stop_memory" => integer 2175576
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8961
        "start_memory" => integer 2177992
        "stop_time" => float 1734902261.8974
        "stop_memory" => integer 2178584
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8978
        "start_memory" => integer 2192840
        "stop_time" => float 1734902261.8989
        "stop_memory" => integer 2193408
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.8989
        "start_memory" => integer 2195824
        "stop_time" => float 1734902261.9002
        "stop_memory" => integer 2196416
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9006
        "start_memory" => integer 2210688
        "stop_time" => float 1734902261.9017
        "stop_memory" => integer 2211256
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9017
        "start_memory" => integer 2213672
        "stop_time" => float 1734902261.903
        "stop_memory" => integer 2214264
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9034
        "start_memory" => integer 2228576
        "stop_time" => float 1734902261.9046
        "stop_memory" => integer 2229144
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9046
        "start_memory" => integer 2231560
        "stop_time" => float 1734902261.9059
        "stop_memory" => integer 2232152
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9063
        "start_memory" => integer 2246424
        "stop_time" => float 1734902261.9074
        "stop_memory" => integer 2246992
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9075
        "start_memory" => integer 2249408
        "stop_time" => float 1734902261.9088
        "stop_memory" => integer 2250000
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9094
        "start_memory" => integer 2264400
        "stop_time" => float 1734902261.9105
        "stop_memory" => integer 2264968
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9106
        "start_memory" => integer 2267384
        "stop_time" => float 1734902261.9119
        "stop_memory" => integer 2267976
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9124
        "start_memory" => integer 2282264
        "stop_time" => float 1734902261.9136
        "stop_memory" => integer 2282832
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9136
        "start_memory" => integer 2285248
        "stop_time" => float 1734902261.9151
        "stop_memory" => integer 2285840
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9156
        "start_memory" => integer 2300112
        "stop_time" => float 1734902261.9168
        "stop_memory" => integer 2300680
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9169
        "start_memory" => integer 2303096
        "stop_time" => float 1734902261.9184
        "stop_memory" => integer 2303688
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9189
        "start_memory" => integer 2317960
        "stop_time" => float 1734902261.9202
        "stop_memory" => integer 2318528
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9203
        "start_memory" => integer 2320944
        "stop_time" => float 1734902261.9216
        "stop_memory" => integer 2321536
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.922
        "start_memory" => integer 2335792
        "stop_time" => float 1734902261.9232
        "stop_memory" => integer 2336360
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9233
        "start_memory" => integer 2338776
        "stop_time" => float 1734902261.9246
        "stop_memory" => integer 2339368
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.925
        "start_memory" => integer 2353624
        "stop_time" => float 1734902261.9262
        "stop_memory" => integer 2354192
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9262
        "start_memory" => integer 2356608
        "stop_time" => float 1734902261.9276
        "stop_memory" => integer 2357200
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9281
        "start_memory" => integer 2371472
        "stop_time" => float 1734902261.9293
        "stop_memory" => integer 2372040
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9293
        "start_memory" => integer 2374456
        "stop_time" => float 1734902261.9305
        "stop_memory" => integer 2375048
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.931
        "start_memory" => integer 2389304
        "stop_time" => float 1734902261.9322
        "stop_memory" => integer 2389872
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9322
        "start_memory" => integer 2392288
        "stop_time" => float 1734902261.9335
        "stop_memory" => integer 2392880
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9344
        "start_memory" => integer 2407376
        "stop_time" => float 1734902261.9356
        "stop_memory" => integer 2407944
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9356
        "start_memory" => integer 2410360
        "stop_time" => float 1734902261.9371
        "stop_memory" => integer 2410952
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9387
        "start_memory" => integer 2420072
        "stop_time" => float 1734902261.9394
        "stop_memory" => integer 2420624
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9394
        "start_memory" => integer 2422984
        "stop_time" => float 1734902261.9402
        "stop_memory" => integer 2423568
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9407
        "start_memory" => integer 2447504
        "stop_time" => float 1734902261.9414
        "stop_memory" => integer 2448080
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9415
        "start_memory" => integer 2450456
        "stop_time" => float 1734902261.9423
        "stop_memory" => integer 2451048
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9428
        "start_memory" => integer 2478760
        "stop_time" => float 1734902261.9438
        "stop_memory" => integer 2479312
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9439
        "start_memory" => integer 2481712
        "stop_time" => float 1734902261.945
        "stop_memory" => integer 2482296
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9463
        "start_memory" => integer 2491112
        "stop_time" => float 1734902261.9472
        "stop_memory" => integer 2491704
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9473
        "start_memory" => integer 2494112
        "stop_time" => float 1734902261.9483
        "stop_memory" => integer 2494712
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9487
        "start_memory" => integer 2505976
        "stop_time" => float 1734902261.9497
        "stop_memory" => integer 2506568
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9498
        "start_memory" => integer 2509000
        "stop_time" => float 1734902261.9512
        "stop_memory" => integer 2509592
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.952
        "start_memory" => integer 2522856
        "stop_time" => float 1734902261.953
        "stop_memory" => integer 2523432
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.953
        "start_memory" => integer 2525848
        "stop_time" => float 1734902261.9541
        "stop_memory" => integer 2526448
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9555
        "start_memory" => integer 2537128
        "stop_time" => float 1734902261.9561
        "stop_memory" => integer 2537720
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.958
        "start_memory" => integer 2547096
        "stop_time" => float 1734902261.9593
        "stop_memory" => integer 2547672
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9594
        "start_memory" => integer 2556016
        "stop_time" => float 1734902261.9607
        "stop_memory" => integer 2556600
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9614
        "start_memory" => integer 2565680
        "stop_time" => float 1734902261.9624
        "stop_memory" => integer 2566232
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9624
        "start_memory" => integer 2568616
        "stop_time" => float 1734902261.9636
        "stop_memory" => integer 2569200
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9639
        "start_memory" => integer 2572208
        "stop_time" => float 1734902261.965
        "stop_memory" => integer 2572768
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9651
        "start_memory" => integer 2575152
        "stop_time" => float 1734902261.9663
        "stop_memory" => integer 2575736
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9666
        "start_memory" => integer 2578744
        "stop_time" => float 1734902261.9677
        "stop_memory" => integer 2579304
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9678
        "start_memory" => integer 2581688
        "stop_time" => float 1734902261.969
        "stop_memory" => integer 2582272
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9695
        "start_memory" => integer 2588688
        "stop_time" => float 1734902261.9705
        "stop_memory" => integer 2589248
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9705
        "start_memory" => integer 2591608
        "stop_time" => float 1734902261.9716
        "stop_memory" => integer 2592176
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.972
        "start_memory" => integer 2594104
        "stop_time" => float 1734902261.973
        "stop_memory" => integer 2594688
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.973
        "start_memory" => integer 2598592
        "stop_time" => float 1734902261.9738
        "stop_memory" => integer 2599152
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9738
        "start_memory" => integer 2601528
        "stop_time" => float 1734902261.9746
        "stop_memory" => integer 2602112
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9751
        "start_memory" => integer 2685576
        "stop_time" => float 1734902261.9762
        "stop_memory" => integer 2686152
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9766
        "start_memory" => integer 2718648
        "stop_time" => float 1734902261.9776
        "stop_memory" => integer 2719240
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9779
        "start_memory" => integer 2747008
        "stop_time" => float 1734902261.9785
        "stop_memory" => integer 2747592
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9785
        "start_memory" => integer 2749992
        "stop_time" => float 1734902261.9793
        "stop_memory" => integer 2750592
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9796
        "start_memory" => integer 2753760
        "stop_time" => float 1734902261.9804
        "stop_memory" => integer 2754320
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9807
        "start_memory" => integer 2780360
        "stop_time" => float 1734902261.9816
        "stop_memory" => integer 2780936
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9819
        "start_memory" => integer 2809936
        "stop_time" => float 1734902261.9828
        "stop_memory" => integer 2810528
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.983
        "start_memory" => integer 2837208
        "stop_time" => float 1734902261.9841
        "stop_memory" => integer 2837744
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9842
        "start_memory" => integer 2840096
        "stop_time" => float 1734902261.9853
        "stop_memory" => integer 2840672
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9867
        "start_memory" => integer 2852552
        "stop_time" => float 1734902261.9879
        "stop_memory" => integer 2853168
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9879
        "start_memory" => integer 2855824
        "stop_time" => float 1734902261.989
        "stop_memory" => integer 2856416
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9903
        "start_memory" => integer 2875968
        "stop_time" => float 1734902261.9916
        "stop_memory" => integer 2876544
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9916
        "start_memory" => integer 2878976
        "stop_time" => float 1734902261.993
        "stop_memory" => integer 2879576
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9957
        "start_memory" => integer 2895832
        "stop_time" => float 1734902261.9968
        "stop_memory" => integer 2896376
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9968
        "start_memory" => integer 2898744
        "stop_time" => float 1734902261.998
        "stop_memory" => integer 2899328
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9983
        "start_memory" => integer 2903760
        "stop_time" => float 1734902261.9995
        "stop_memory" => integer 2904320
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902261.9995
        "start_memory" => integer 2906680
        "stop_time" => float 1734902262.0006
        "stop_memory" => integer 2907264
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.001
        "start_memory" => integer 2926272
        "stop_time" => float 1734902262.002
        "stop_memory" => integer 2926848
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.0021
        "start_memory" => integer 2929240
        "stop_time" => float 1734902262.0033
        "stop_memory" => integer 2929832
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.004
        "start_memory" => integer 2948032
        "stop_time" => float 1734902262.0046
        "stop_memory" => integer 2948616
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.0046
        "start_memory" => integer 2951024
        "stop_time" => float 1734902262.0053
        "stop_memory" => integer 2951624
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.0059
        "start_memory" => integer 2974144
        "stop_time" => float 1734902262.0071
        "stop_memory" => integer 2974704
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.0071
        "start_memory" => integer 2977120
        "stop_time" => float 1734902262.0084
        "stop_memory" => integer 2977712
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.0088
        "start_memory" => integer 2995856
        "stop_time" => float 1734902262.0098
        "stop_memory" => integer 2996392
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.0099
        "start_memory" => integer 2998736
        "stop_time" => float 1734902262.0111
        "stop_memory" => integer 2999312
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.0116
        "start_memory" => integer 3018504
        "stop_time" => float 1734902262.0126
        "stop_memory" => integer 3019072
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.0127
        "start_memory" => integer 3021432
        "stop_time" => float 1734902262.0138
        "stop_memory" => integer 3022016
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.0169
        "start_memory" => integer 3028424
        "stop_time" => float 1734902262.018
        "stop_memory" => integer 3028984
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.018
        "start_memory" => integer 3031344
        "stop_time" => float 1734902262.0192
        "stop_memory" => integer 3031912
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.0196
        "start_memory" => integer 3049352
        "stop_time" => float 1734902262.0207
        "stop_memory" => integer 3049920
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.0207
        "start_memory" => integer 3052304
        "stop_time" => float 1734902262.0219
        "stop_memory" => integer 3052888
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.0223
        "start_memory" => integer 3081536
        "stop_time" => float 1734902262.0235
        "stop_memory" => integer 3082112
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.0235
        "start_memory" => integer 3084536
        "stop_time" => float 1734902262.0249
        "stop_memory" => integer 3085128
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.0257
        "start_memory" => integer 3102384
        "stop_time" => float 1734902262.0266
        "stop_memory" => integer 3102968
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.0268
        "start_memory" => integer 3068552
        "stop_time" => float 1734902262.0277
        "stop_memory" => integer 3070512
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.028
        "start_memory" => integer 3094720
        "stop_time" => float 1734902262.029
        "stop_memory" => integer 3096384
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734902262.029
        "start_memory" => integer 3095968
        "stop_time" => float 1734902262.03
        "stop_memory" => integer 3097632
    )
)

Methods

public static application( ) (defined in Kohana_Profiler)

Gets the total application run time and memory usage. Caches the result so that it can be compared between requests.

list($time, $memory) = Profiler::application();

Tags

Return Values

  • array - Execution time, memory

Source Code

public static function application()
{
	// Load the stats from cache, which is valid for 1 day
	$stats = Kohana::cache('profiler_application_stats', NULL, 3600 * 24);

	if ( ! is_array($stats) OR $stats['count'] > Profiler::$rollover)
	{
		// Initialize the stats array
		$stats = array(
			'min'   => array(
				'time'   => NULL,
				'memory' => NULL),
			'max'   => array(
				'time'   => NULL,
				'memory' => NULL),
			'total' => array(
				'time'   => NULL,
				'memory' => NULL),
			'count' => 0);
	}

	// Get the application run time
	$time = microtime(TRUE) - KOHANA_START_TIME;

	// Get the total memory usage
	$memory = memory_get_usage() - KOHANA_START_MEMORY;

	// Calculate max time
	if ($stats['max']['time'] === NULL OR $time > $stats['max']['time'])
	{
		$stats['max']['time'] = $time;
	}

	// Calculate min time
	if ($stats['min']['time'] === NULL OR $time < $stats['min']['time'])
	{
		$stats['min']['time'] = $time;
	}

	// Add to total time
	$stats['total']['time'] += $time;

	// Calculate max memory
	if ($stats['max']['memory'] === NULL OR $memory > $stats['max']['memory'])
	{
		$stats['max']['memory'] = $memory;
	}

	// Calculate min memory
	if ($stats['min']['memory'] === NULL OR $memory < $stats['min']['memory'])
	{
		$stats['min']['memory'] = $memory;
	}

	// Add to total memory
	$stats['total']['memory'] += $memory;

	// Another mark has been added to the stats
	$stats['count']++;

	// Determine the averages
	$stats['average'] = array(
		'time'   => $stats['total']['time'] / $stats['count'],
		'memory' => $stats['total']['memory'] / $stats['count']);

	// Cache the new stats
	Kohana::cache('profiler_application_stats', $stats);

	// Set the current application execution time and memory
	// Do NOT cache these, they are specific to the current request only
	$stats['current']['time']   = $time;
	$stats['current']['memory'] = $memory;

	// Return the total application run time and memory usage
	return $stats;
}

public static delete( string $token ) (defined in Kohana_Profiler)

Deletes a benchmark. If an error occurs during the benchmark, it is recommended to delete the benchmark to prevent statistics from being adversely affected.

Profiler::delete($token);

Parameters

  • string $token required - $token

Return Values

  • void

Source Code

public static function delete($token)
{
	// Remove the benchmark
	unset(Profiler::$_marks[$token]);
}

public static group_stats( [ mixed $groups = NULL ] ) (defined in Kohana_Profiler)

Gets the min, max, average and total of profiler groups as an array.

$stats = Profiler::group_stats('test');

Parameters

  • mixed $groups = NULL - Single group name string, or array with group names; all groups by default

Tags

Return Values

  • array - Min, max, average, total

Source Code

public static function group_stats($groups = NULL)
{
	// Which groups do we need to calculate stats for?
	$groups = ($groups === NULL)
		? Profiler::groups()
		: array_intersect_key(Profiler::groups(), array_flip( (array) $groups));

	// All statistics
	$stats = array();

	foreach ($groups as $group => $names)
	{
		foreach ($names as $name => $tokens)
		{
			// Store the stats for each subgroup.
			// We only need the values for "total".
			$_stats = Profiler::stats($tokens);
			$stats[$group][$name] = $_stats['total'];
		}
	}

	// Group stats
	$groups = array();

	foreach ($stats as $group => $names)
	{
		// Min and max are unknown by default
		$groups[$group]['min'] = $groups[$group]['max'] = array(
			'time' => NULL,
			'memory' => NULL);

		// Total values are always integers
		$groups[$group]['total'] = array(
			'time' => 0,
			'memory' => 0);

		foreach ($names as $total)
		{
			if ( ! isset($groups[$group]['min']['time']) OR $groups[$group]['min']['time'] > $total['time'])
			{
				// Set the minimum time
				$groups[$group]['min']['time'] = $total['time'];
			}
			if ( ! isset($groups[$group]['min']['memory']) OR $groups[$group]['min']['memory'] > $total['memory'])
			{
				// Set the minimum memory
				$groups[$group]['min']['memory'] = $total['memory'];
			}

			if ( ! isset($groups[$group]['max']['time']) OR $groups[$group]['max']['time'] < $total['time'])
			{
				// Set the maximum time
				$groups[$group]['max']['time'] = $total['time'];
			}
			if ( ! isset($groups[$group]['max']['memory']) OR $groups[$group]['max']['memory'] < $total['memory'])
			{
				// Set the maximum memory
				$groups[$group]['max']['memory'] = $total['memory'];
			}

			// Increase the total time and memory
			$groups[$group]['total']['time']   += $total['time'];
			$groups[$group]['total']['memory'] += $total['memory'];
		}

		// Determine the number of names (subgroups)
		$count = count($names);

		// Determine the averages
		$groups[$group]['average']['time']   = $groups[$group]['total']['time'] / $count;
		$groups[$group]['average']['memory'] = $groups[$group]['total']['memory'] / $count;
	}

	return $groups;
}

public static groups( ) (defined in Kohana_Profiler)

Returns all the benchmark tokens by group and name as an array.

$groups = Profiler::groups();

Return Values

  • array

Source Code

public static function groups()
{
	$groups = array();

	foreach (Profiler::$_marks as $token => $mark)
	{
		// Sort the tokens by the group and name
		$groups[$mark['group']][$mark['name']][] = $token;
	}

	return $groups;
}

public static start( string $group , string $name ) (defined in Kohana_Profiler)

Starts a new benchmark and returns a unique token. The returned token must be used when stopping the benchmark.

$token = Profiler::start('test', 'profiler');

Parameters

  • string $group required - Group name
  • string $name required - Benchmark name

Return Values

  • string

Source Code

public static function start($group, $name)
{
	static $counter = 0;

	// Create a unique token based on the counter
	$token = 'kp/'.base_convert($counter++, 10, 32);

	Profiler::$_marks[$token] = array
	(
		'group' => strtolower($group),
		'name'  => (string) $name,

		// Start the benchmark
		'start_time'   => microtime(TRUE),
		'start_memory' => memory_get_usage(),

		// Set the stop keys without values
		'stop_time'    => FALSE,
		'stop_memory'  => FALSE,
	);

	return $token;
}

public static stats( array $tokens ) (defined in Kohana_Profiler)

Gets the min, max, average and total of a set of tokens as an array.

$stats = Profiler::stats($tokens);

Parameters

  • array $tokens required - Profiler tokens

Tags

Return Values

  • array - Min, max, average, total

Source Code

public static function stats(array $tokens)
{
	// Min and max are unknown by default
	$min = $max = array(
		'time' => NULL,
		'memory' => NULL);

	// Total values are always integers
	$total = array(
		'time' => 0,
		'memory' => 0);

	foreach ($tokens as $token)
	{
		// Get the total time and memory for this benchmark
		list($time, $memory) = Profiler::total($token);

		if ($max['time'] === NULL OR $time > $max['time'])
		{
			// Set the maximum time
			$max['time'] = $time;
		}

		if ($min['time'] === NULL OR $time < $min['time'])
		{
			// Set the minimum time
			$min['time'] = $time;
		}

		// Increase the total time
		$total['time'] += $time;

		if ($max['memory'] === NULL OR $memory > $max['memory'])
		{
			// Set the maximum memory
			$max['memory'] = $memory;
		}

		if ($min['memory'] === NULL OR $memory < $min['memory'])
		{
			// Set the minimum memory
			$min['memory'] = $memory;
		}

		// Increase the total memory
		$total['memory'] += $memory;
	}

	// Determine the number of tokens
	$count = count($tokens);

	// Determine the averages
	$average = array(
		'time' => $total['time'] / $count,
		'memory' => $total['memory'] / $count);

	return array(
		'min' => $min,
		'max' => $max,
		'total' => $total,
		'average' => $average);
}

public static stop( string $token ) (defined in Kohana_Profiler)

Stops a benchmark.

Profiler::stop($token);

Parameters

  • string $token required - $token

Return Values

  • void

Source Code

public static function stop($token)
{
	// Stop the benchmark
	Profiler::$_marks[$token]['stop_time']   = microtime(TRUE);
	Profiler::$_marks[$token]['stop_memory'] = memory_get_usage();
}

public static total( string $token ) (defined in Kohana_Profiler)

Gets the total execution time and memory usage of a benchmark as a list.

list($time, $memory) = Profiler::total($token);

Parameters

  • string $token required - $token

Return Values

  • array - Execution time, memory

Source Code

public static function total($token)
{
	// Import the benchmark data
	$mark = Profiler::$_marks[$token];

	if ($mark['stop_time'] === FALSE)
	{
		// The benchmark has not been stopped yet
		$mark['stop_time']   = microtime(TRUE);
		$mark['stop_memory'] = memory_get_usage();
	}

	return array
	(
		// Total time in seconds
		$mark['stop_time'] - $mark['start_time'],

		// Amount of memory in bytes
		$mark['stop_memory'] - $mark['start_memory'],
	);
}