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 1732224307.3219
        "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 1732224307.3219
        "start_memory" => integer 584160
        "stop_time" => float 1732224307.3231
        "stop_memory" => integer 584824
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3232
        "start_memory" => integer 587248
        "stop_time" => float 1732224307.3289
        "stop_memory" => integer 587856
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3289
        "start_memory" => integer 596072
        "stop_time" => float 1732224307.3303
        "stop_memory" => integer 596624
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3303
        "start_memory" => integer 599040
        "stop_time" => float 1732224307.3361
        "stop_memory" => integer 599632
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3361
        "start_memory" => integer 603688
        "stop_time" => float 1732224307.3376
        "stop_memory" => integer 604240
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3377
        "start_memory" => integer 606624
        "stop_time" => float 1732224307.3435
        "stop_memory" => integer 607208
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3437
        "start_memory" => integer 618480
        "stop_time" => float 1732224307.3451
        "stop_memory" => integer 619040
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3452
        "start_memory" => integer 621408
        "stop_time" => float 1732224307.3469
        "stop_memory" => integer 622056
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3469
        "start_memory" => integer 640936
        "stop_time" => float 1732224307.3529
        "stop_memory" => integer 641512
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.353
        "start_memory" => integer 643904
        "stop_time" => float 1732224307.3548
        "stop_memory" => integer 644480
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.355
        "start_memory" => integer 658000
        "stop_time" => float 1732224307.3601
        "stop_memory" => integer 658544
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3602
        "start_memory" => integer 660888
        "stop_time" => float 1732224307.3617
        "stop_memory" => integer 661464
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3618
        "start_memory" => integer 673840
        "stop_time" => float 1732224307.3627
        "stop_memory" => integer 674440
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3627
        "start_memory" => integer 675488
        "stop_time" => float 1732224307.3678
        "stop_memory" => integer 676024
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3679
        "start_memory" => integer 678376
        "stop_time" => float 1732224307.3693
        "stop_memory" => integer 678952
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3694
        "start_memory" => integer 682760
        "stop_time" => float 1732224307.3705
        "stop_memory" => integer 683440
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3705
        "start_memory" => integer 685784
        "stop_time" => float 1732224307.3763
        "stop_memory" => integer 686360
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3765
        "start_memory" => integer 709944
        "stop_time" => float 1732224307.378
        "stop_memory" => integer 710544
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3781
        "start_memory" => integer 712944
        "stop_time" => float 1732224307.3839
        "stop_memory" => integer 713544
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.384
        "start_memory" => integer 722696
        "stop_time" => float 1732224307.3856
        "stop_memory" => integer 723200
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3857
        "start_memory" => integer 723840
        "stop_time" => float 1732224307.387
        "stop_memory" => integer 724416
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3915
        "start_memory" => integer 878240
        "stop_time" => float 1732224307.3957
        "stop_memory" => integer 878824
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.3958
        "start_memory" => integer 881224
        "stop_time" => float 1732224307.3977
        "stop_memory" => integer 881824
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.398
        "start_memory" => integer 882808
        "stop_time" => float 1732224307.4006
        "stop_memory" => integer 883384
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.4007
        "start_memory" => integer 885784
        "stop_time" => float 1732224307.4024
        "stop_memory" => integer 886384
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.4025
        "start_memory" => integer 892640
        "stop_time" => float 1732224307.4079
        "stop_memory" => integer 893200
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.408
        "start_memory" => integer 895568
        "stop_time" => float 1732224307.4095
        "stop_memory" => integer 896160
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.4098
        "start_memory" => integer 919344
        "stop_time" => float 1732224307.4112
        "stop_memory" => integer 919880
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.4113
        "start_memory" => integer 922224
        "stop_time" => float 1732224307.4172
        "stop_memory" => integer 922800
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224307.4182
        "start_memory" => integer 945192
        "stop_time" => float 1732224307.4239
        "stop_memory" => integer 945792
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.4715
        "start_memory" => integer 986704
        "stop_time" => float 1732224309.4718
        "stop_memory" => integer 987280
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.4719
        "start_memory" => integer 989632
        "stop_time" => float 1732224309.4722
        "stop_memory" => integer 990472
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.473
        "start_memory" => integer 1002040
        "stop_time" => float 1732224309.4734
        "stop_memory" => integer 1002616
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.4735
        "start_memory" => integer 1005008
        "stop_time" => float 1732224309.4739
        "stop_memory" => integer 1005600
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.4745
        "start_memory" => integer 1017448
        "stop_time" => float 1732224309.4798
        "stop_memory" => integer 1018016
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.4799
        "start_memory" => integer 1020392
        "stop_time" => float 1732224309.4813
        "stop_memory" => integer 1020968
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.4819
        "start_memory" => integer 1033112
        "stop_time" => float 1732224309.4827
        "stop_memory" => integer 1033704
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.4827
        "start_memory" => integer 1039568
        "stop_time" => float 1732224309.4833
        "stop_memory" => integer 1040136
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.4846
        "start_memory" => integer 1042528
        "stop_time" => float 1732224309.4854
        "stop_memory" => integer 1043120
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.4915
        "start_memory" => integer 1051992
        "stop_time" => float 1732224309.4922
        "stop_memory" => integer 1052592
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.4924
        "start_memory" => integer 1058912
        "stop_time" => float 1732224309.4931
        "stop_memory" => integer 1059488
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.4933
        "start_memory" => integer 1064560
        "stop_time" => float 1732224309.494
        "stop_memory" => integer 1065160
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.4942
        "start_memory" => integer 1070648
        "stop_time" => float 1732224309.4949
        "stop_memory" => integer 1071224
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.4951
        "start_memory" => integer 1079760
        "stop_time" => float 1732224309.4958
        "stop_memory" => integer 1080344
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.496
        "start_memory" => integer 1085728
        "stop_time" => float 1732224309.4967
        "stop_memory" => integer 1086312
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.4969
        "start_memory" => integer 1093360
        "stop_time" => float 1732224309.4976
        "stop_memory" => integer 1093960
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.4978
        "start_memory" => integer 1101152
        "stop_time" => float 1732224309.4985
        "stop_memory" => integer 1101744
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.4987
        "start_memory" => integer 1108232
        "stop_time" => float 1732224309.4993
        "stop_memory" => integer 1108824
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.5036
        "start_memory" => integer 1114824
        "stop_time" => float 1732224309.5047
        "stop_memory" => integer 1115416
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.505
        "start_memory" => integer 1151712
        "stop_time" => float 1732224309.5057
        "stop_memory" => integer 1152288
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.506
        "start_memory" => integer 1160328
        "stop_time" => float 1732224309.5067
        "stop_memory" => integer 1160928
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.5069
        "start_memory" => integer 1168352
        "stop_time" => float 1732224309.5076
        "stop_memory" => integer 1168928
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.5078
        "start_memory" => integer 1178296
        "stop_time" => float 1732224309.5085
        "stop_memory" => integer 1178880
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.5086
        "start_memory" => integer 1187560
        "stop_time" => float 1732224309.5091
        "stop_memory" => integer 1188112
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.5091
        "start_memory" => integer 1190472
        "stop_time" => float 1732224309.5097
        "stop_memory" => integer 1191056
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.5097
        "start_memory" => integer 1202936
        "stop_time" => float 1732224309.5111
        "stop_memory" => integer 1203496
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.5111
        "start_memory" => integer 1205856
        "stop_time" => float 1732224309.5209
        "stop_memory" => integer 1206424
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.5283
        "start_memory" => integer 1250056
        "stop_time" => float 1732224309.5297
        "stop_memory" => integer 1250640
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.5403
        "start_memory" => integer 1251240
        "stop_time" => float 1732224309.5409
        "stop_memory" => integer 1251816
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.541
        "start_memory" => integer 1254224
        "stop_time" => float 1732224309.5415
        "stop_memory" => integer 1254816
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.5495
        "start_memory" => integer 1266784
        "stop_time" => float 1732224309.5501
        "stop_memory" => integer 1267368
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.5501
        "start_memory" => integer 1269792
        "stop_time" => float 1732224309.5507
        "stop_memory" => integer 1270392
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.5587
        "start_memory" => integer 1282256
        "stop_time" => float 1732224309.5592
        "stop_memory" => integer 1282816
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.5593
        "start_memory" => integer 1285208
        "stop_time" => float 1732224309.564
        "stop_memory" => integer 1286312
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.5641
        "start_memory" => integer 1296168
        "stop_time" => float 1732224309.5647
        "stop_memory" => integer 1296768
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.5732
        "start_memory" => integer 1305432
        "stop_time" => float 1732224309.5738
        "stop_memory" => integer 1306008
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.5738
        "start_memory" => integer 1308424
        "stop_time" => float 1732224309.5744
        "stop_memory" => integer 1309008
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6013
        "start_memory" => integer 1329016
        "stop_time" => float 1732224309.6019
        "stop_memory" => integer 1329600
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6019
        "start_memory" => integer 1332024
        "stop_time" => float 1732224309.6025
        "stop_memory" => integer 1332624
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6025
        "start_memory" => integer 1341504
        "stop_time" => float 1732224309.6031
        "stop_memory" => integer 1342080
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6078
        "start_memory" => integer 1349056
        "stop_time" => float 1732224309.6083
        "stop_memory" => integer 1349624
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6084
        "start_memory" => integer 1352008
        "stop_time" => float 1732224309.609
        "stop_memory" => integer 1352600
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6097
        "start_memory" => integer 1365368
        "stop_time" => float 1732224309.6102
        "stop_memory" => integer 1365952
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6102
        "start_memory" => integer 1368352
        "stop_time" => float 1732224309.6108
        "stop_memory" => integer 1368936
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6239
        "start_memory" => integer 1381168
        "stop_time" => float 1732224309.6245
        "stop_memory" => integer 1381736
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6245
        "start_memory" => integer 1384136
        "stop_time" => float 1732224309.6251
        "stop_memory" => integer 1384728
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6259
        "start_memory" => integer 1393544
        "stop_time" => float 1732224309.6274
        "stop_memory" => integer 1394080
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6315
        "start_memory" => integer 1396432
        "stop_time" => float 1732224309.6334
        "stop_memory" => integer 1397008
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6407
        "start_memory" => integer 1399680
        "stop_time" => float 1732224309.6415
        "stop_memory" => integer 1400280
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6416
        "start_memory" => integer 1402688
        "stop_time" => float 1732224309.6426
        "stop_memory" => integer 1403288
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6501
        "start_memory" => integer 1427448
        "stop_time" => float 1732224309.651
        "stop_memory" => integer 1428040
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6556
        "start_memory" => integer 1432704
        "stop_time" => float 1732224309.6582
        "stop_memory" => integer 1433264
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6583
        "start_memory" => integer 1435664
        "stop_time" => float 1732224309.6654
        "stop_memory" => integer 1436256
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6727
        "start_memory" => integer 1445904
        "stop_time" => float 1732224309.6729
        "stop_memory" => integer 1446488
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6746
        "start_memory" => integer 1450288
        "stop_time" => float 1732224309.6796
        "stop_memory" => integer 1450856
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6796
        "start_memory" => integer 1453232
        "stop_time" => float 1732224309.6806
        "stop_memory" => integer 1453824
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6824
        "start_memory" => integer 1499200
        "stop_time" => float 1732224309.6833
        "stop_memory" => integer 1499784
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6834
        "start_memory" => integer 1502224
        "stop_time" => float 1732224309.6884
        "stop_memory" => integer 1502824
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6891
        "start_memory" => integer 1517056
        "stop_time" => float 1732224309.6899
        "stop_memory" => integer 1517648
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.69
        "start_memory" => integer 1520080
        "stop_time" => float 1732224309.691
        "stop_memory" => integer 1520672
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6969
        "start_memory" => integer 1524576
        "stop_time" => float 1732224309.6977
        "stop_memory" => integer 1525152
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.6978
        "start_memory" => integer 1527568
        "stop_time" => float 1732224309.6988
        "stop_memory" => integer 1528168
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7036
        "start_memory" => integer 1572536
        "stop_time" => float 1732224309.7046
        "stop_memory" => integer 1573128
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7047
        "start_memory" => integer 1575560
        "stop_time" => float 1732224309.7057
        "stop_memory" => integer 1576168
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7058
        "start_memory" => integer 1580648
        "stop_time" => float 1732224309.7066
        "stop_memory" => integer 1581216
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7067
        "start_memory" => integer 1583624
        "stop_time" => float 1732224309.7117
        "stop_memory" => integer 1584224
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7126
        "start_memory" => integer 1611816
        "stop_time" => float 1732224309.7135
        "stop_memory" => integer 1612392
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7135
        "start_memory" => integer 1614800
        "stop_time" => float 1732224309.7145
        "stop_memory" => integer 1615400
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7151
        "start_memory" => integer 1636656
        "stop_time" => float 1732224309.7202
        "stop_memory" => integer 1637232
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7203
        "start_memory" => integer 1639632
        "stop_time" => float 1732224309.7213
        "stop_memory" => integer 1640232
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7222
        "start_memory" => integer 1652160
        "stop_time" => float 1732224309.7233
        "stop_memory" => integer 1652752
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7233
        "start_memory" => integer 1655192
        "stop_time" => float 1732224309.7287
        "stop_memory" => integer 1655800
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7296
        "start_memory" => integer 1671384
        "stop_time" => float 1732224309.7307
        "stop_memory" => integer 1671984
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7308
        "start_memory" => integer 1674472
        "stop_time" => float 1732224309.7359
        "stop_memory" => integer 1675088
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.736
        "start_memory" => integer 1679648
        "stop_time" => float 1732224309.7367
        "stop_memory" => integer 1680240
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7367
        "start_memory" => integer 1682704
        "stop_time" => float 1732224309.7376
        "stop_memory" => integer 1683320
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7383
        "start_memory" => integer 1728888
        "stop_time" => float 1732224309.7436
        "stop_memory" => integer 1729480
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7436
        "start_memory" => integer 1731968
        "stop_time" => float 1732224309.7448
        "stop_memory" => integer 1732584
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7459
        "start_memory" => integer 1752432
        "stop_time" => float 1732224309.7469
        "stop_memory" => integer 1753024
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.747
        "start_memory" => integer 1755504
        "stop_time" => float 1732224309.7523
        "stop_memory" => integer 1756104
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7534
        "start_memory" => integer 1774640
        "stop_time" => float 1732224309.7543
        "stop_memory" => integer 1775240
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7544
        "start_memory" => integer 1777712
        "stop_time" => float 1732224309.7596
        "stop_memory" => integer 1778328
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7603
        "start_memory" => integer 1821072
        "stop_time" => float 1732224309.7615
        "stop_memory" => integer 1821664
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7616
        "start_memory" => integer 1824136
        "stop_time" => float 1732224309.7624
        "stop_memory" => integer 1824752
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7639
        "start_memory" => integer 1852640
        "stop_time" => float 1732224309.7648
        "stop_memory" => integer 1853216
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7648
        "start_memory" => integer 1855656
        "stop_time" => float 1732224309.7658
        "stop_memory" => integer 1856264
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7665
        "start_memory" => integer 1871880
        "stop_time" => float 1732224309.7758
        "stop_memory" => integer 1872400
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7758
        "start_memory" => integer 1874760
        "stop_time" => float 1732224309.7774
        "stop_memory" => integer 1875336
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.778
        "start_memory" => integer 1890456
        "stop_time" => float 1732224309.7787
        "stop_memory" => integer 1891024
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.7788
        "start_memory" => integer 1893384
        "stop_time" => float 1732224309.7836
        "stop_memory" => integer 1893968
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.787
        "start_memory" => integer 1900896
        "stop_time" => float 1732224309.7929
        "stop_memory" => integer 1901456
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.793
        "start_memory" => integer 1903816
        "stop_time" => float 1732224309.7947
        "stop_memory" => integer 1904400
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8017
        "start_memory" => integer 1911048
        "stop_time" => float 1732224309.8032
        "stop_memory" => integer 1911592
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8032
        "start_memory" => integer 1913952
        "stop_time" => float 1732224309.8086
        "stop_memory" => integer 1914528
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8092
        "start_memory" => integer 1916808
        "stop_time" => float 1732224309.8103
        "stop_memory" => integer 1917360
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8103
        "start_memory" => integer 1919704
        "stop_time" => float 1732224309.8155
        "stop_memory" => integer 1920280
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.816
        "start_memory" => integer 1926720
        "stop_time" => float 1732224309.8172
        "stop_memory" => integer 1927272
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8172
        "start_memory" => integer 1929616
        "stop_time" => float 1732224309.8186
        "stop_memory" => integer 1931216
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8238
        "start_memory" => integer 1942304
        "stop_time" => float 1732224309.8254
        "stop_memory" => integer 1942872
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8255
        "start_memory" => integer 1945240
        "stop_time" => float 1732224309.8272
        "stop_memory" => integer 1945824
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8337
        "start_memory" => integer 1952176
        "stop_time" => float 1732224309.8352
        "stop_memory" => integer 1952720
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8353
        "start_memory" => integer 1955088
        "stop_time" => float 1732224309.8407
        "stop_memory" => integer 1955664
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8419
        "start_memory" => integer 1960552
        "stop_time" => float 1732224309.8477
        "stop_memory" => integer 1961136
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8478
        "start_memory" => integer 1963528
        "stop_time" => float 1732224309.8497
        "stop_memory" => integer 1964120
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8505
        "start_memory" => integer 1978720
        "stop_time" => float 1732224309.8565
        "stop_memory" => integer 1979288
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8567
        "start_memory" => integer 1981704
        "stop_time" => float 1732224309.8588
        "stop_memory" => integer 1982296
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.864
        "start_memory" => integer 1996576
        "stop_time" => float 1732224309.866
        "stop_memory" => integer 1997144
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.866
        "start_memory" => integer 1999560
        "stop_time" => float 1732224309.8722
        "stop_memory" => integer 2000152
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8739
        "start_memory" => integer 2014408
        "stop_time" => float 1732224309.8799
        "stop_memory" => integer 2014976
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.88
        "start_memory" => integer 2017392
        "stop_time" => float 1732224309.8821
        "stop_memory" => integer 2017984
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8829
        "start_memory" => integer 2032256
        "stop_time" => float 1732224309.8892
        "stop_memory" => integer 2032824
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8892
        "start_memory" => integer 2035240
        "stop_time" => float 1732224309.8914
        "stop_memory" => integer 2035832
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8961
        "start_memory" => integer 2050088
        "stop_time" => float 1732224309.8976
        "stop_memory" => integer 2050656
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.8977
        "start_memory" => integer 2053072
        "stop_time" => float 1732224309.8991
        "stop_memory" => integer 2053664
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9038
        "start_memory" => integer 2067920
        "stop_time" => float 1732224309.9054
        "stop_memory" => integer 2068488
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9055
        "start_memory" => integer 2070904
        "stop_time" => float 1732224309.9118
        "stop_memory" => integer 2071496
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9126
        "start_memory" => integer 2085768
        "stop_time" => float 1732224309.9143
        "stop_memory" => integer 2086336
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9144
        "start_memory" => integer 2088752
        "stop_time" => float 1732224309.9162
        "stop_memory" => integer 2089344
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9169
        "start_memory" => integer 2103600
        "stop_time" => float 1732224309.9186
        "stop_memory" => integer 2104168
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9186
        "start_memory" => integer 2106584
        "stop_time" => float 1732224309.9244
        "stop_memory" => integer 2107176
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9251
        "start_memory" => integer 2121528
        "stop_time" => float 1732224309.9265
        "stop_memory" => integer 2122096
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9266
        "start_memory" => integer 2124512
        "stop_time" => float 1732224309.9322
        "stop_memory" => integer 2125104
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9401
        "start_memory" => integer 2139360
        "stop_time" => float 1732224309.942
        "stop_memory" => integer 2139928
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.942
        "start_memory" => integer 2142344
        "stop_time" => float 1732224309.9442
        "stop_memory" => integer 2142936
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9451
        "start_memory" => integer 2157192
        "stop_time" => float 1732224309.947
        "stop_memory" => integer 2157760
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.947
        "start_memory" => integer 2160176
        "stop_time" => float 1732224309.9535
        "stop_memory" => integer 2160768
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9543
        "start_memory" => integer 2175008
        "stop_time" => float 1732224309.9602
        "stop_memory" => integer 2175576
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9603
        "start_memory" => integer 2177992
        "stop_time" => float 1732224309.9623
        "stop_memory" => integer 2178584
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.963
        "start_memory" => integer 2192840
        "stop_time" => float 1732224309.9686
        "stop_memory" => integer 2193408
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9686
        "start_memory" => integer 2195824
        "stop_time" => float 1732224309.9706
        "stop_memory" => integer 2196416
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9756
        "start_memory" => integer 2210688
        "stop_time" => float 1732224309.9777
        "stop_memory" => integer 2211256
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9777
        "start_memory" => integer 2213672
        "stop_time" => float 1732224309.984
        "stop_memory" => integer 2214264
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9849
        "start_memory" => integer 2228576
        "stop_time" => float 1732224309.9867
        "stop_memory" => integer 2229144
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9867
        "start_memory" => integer 2231560
        "stop_time" => float 1732224309.993
        "stop_memory" => integer 2232152
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9938
        "start_memory" => integer 2246424
        "stop_time" => float 1732224309.9997
        "stop_memory" => integer 2246992
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224309.9998
        "start_memory" => integer 2249408
        "stop_time" => float 1732224310.0016
        "stop_memory" => integer 2250000
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.0024
        "start_memory" => integer 2264400
        "stop_time" => float 1732224310.0083
        "stop_memory" => integer 2264968
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.0083
        "start_memory" => integer 2267384
        "stop_time" => float 1732224310.0104
        "stop_memory" => integer 2267976
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.0112
        "start_memory" => integer 2282264
        "stop_time" => float 1732224310.0172
        "stop_memory" => integer 2282832
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.0173
        "start_memory" => integer 2285248
        "stop_time" => float 1732224310.0193
        "stop_memory" => integer 2285840
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.0241
        "start_memory" => integer 2300112
        "stop_time" => float 1732224310.0262
        "stop_memory" => integer 2300680
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.0263
        "start_memory" => integer 2303096
        "stop_time" => float 1732224310.0322
        "stop_memory" => integer 2303688
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.033
        "start_memory" => integer 2317960
        "stop_time" => float 1732224310.035
        "stop_memory" => integer 2318528
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.0351
        "start_memory" => integer 2320944
        "stop_time" => float 1732224310.0413
        "stop_memory" => integer 2321536
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.0422
        "start_memory" => integer 2335792
        "stop_time" => float 1732224310.0482
        "stop_memory" => integer 2336360
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.0482
        "start_memory" => integer 2338776
        "stop_time" => float 1732224310.0503
        "stop_memory" => integer 2339368
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.0512
        "start_memory" => integer 2353624
        "stop_time" => float 1732224310.0572
        "stop_memory" => integer 2354192
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.0573
        "start_memory" => integer 2356608
        "stop_time" => float 1732224310.0635
        "stop_memory" => integer 2357200
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.0643
        "start_memory" => integer 2371472
        "stop_time" => float 1732224310.0662
        "stop_memory" => integer 2372040
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.0663
        "start_memory" => integer 2374456
        "stop_time" => float 1732224310.074
        "stop_memory" => integer 2375048
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.0749
        "start_memory" => integer 2389304
        "stop_time" => float 1732224310.0874
        "stop_memory" => integer 2389872
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.0875
        "start_memory" => integer 2392288
        "stop_time" => float 1732224310.0896
        "stop_memory" => integer 2392880
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.0915
        "start_memory" => integer 2407376
        "stop_time" => float 1732224310.0933
        "stop_memory" => integer 2407944
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.0934
        "start_memory" => integer 2410360
        "stop_time" => float 1732224310.0997
        "stop_memory" => integer 2410952
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1025
        "start_memory" => integer 2420072
        "stop_time" => float 1732224310.1078
        "stop_memory" => integer 2420624
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1079
        "start_memory" => integer 2422984
        "stop_time" => float 1732224310.1091
        "stop_memory" => integer 2423568
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.11
        "start_memory" => integer 2447504
        "stop_time" => float 1732224310.1113
        "stop_memory" => integer 2448080
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1154
        "start_memory" => integer 2450456
        "stop_time" => float 1732224310.1169
        "stop_memory" => integer 2451048
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.131
        "start_memory" => integer 2478760
        "stop_time" => float 1732224310.1328
        "stop_memory" => integer 2479312
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1329
        "start_memory" => integer 2481712
        "stop_time" => float 1732224310.1348
        "stop_memory" => integer 2482296
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1373
        "start_memory" => integer 2491112
        "stop_time" => float 1732224310.139
        "stop_memory" => integer 2491704
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.139
        "start_memory" => integer 2494112
        "stop_time" => float 1732224310.141
        "stop_memory" => integer 2494712
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1418
        "start_memory" => integer 2505976
        "stop_time" => float 1732224310.1477
        "stop_memory" => integer 2506568
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1477
        "start_memory" => integer 2509000
        "stop_time" => float 1732224310.1498
        "stop_memory" => integer 2509592
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1513
        "start_memory" => integer 2522856
        "stop_time" => float 1732224310.157
        "stop_memory" => integer 2523432
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1571
        "start_memory" => integer 2525848
        "stop_time" => float 1732224310.1589
        "stop_memory" => integer 2526448
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1647
        "start_memory" => integer 2537128
        "stop_time" => float 1732224310.1655
        "stop_memory" => integer 2537720
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1709
        "start_memory" => integer 2547096
        "stop_time" => float 1732224310.1733
        "stop_memory" => integer 2547672
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1736
        "start_memory" => integer 2556016
        "stop_time" => float 1732224310.1758
        "stop_memory" => integer 2556600
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1776
        "start_memory" => integer 2565680
        "stop_time" => float 1732224310.1795
        "stop_memory" => integer 2566232
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1796
        "start_memory" => integer 2568616
        "stop_time" => float 1732224310.1816
        "stop_memory" => integer 2569200
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1823
        "start_memory" => integer 2572208
        "stop_time" => float 1732224310.1842
        "stop_memory" => integer 2572768
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1842
        "start_memory" => integer 2575152
        "stop_time" => float 1732224310.1863
        "stop_memory" => integer 2575736
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1871
        "start_memory" => integer 2578744
        "stop_time" => float 1732224310.1889
        "stop_memory" => integer 2579304
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.189
        "start_memory" => integer 2581688
        "stop_time" => float 1732224310.191
        "stop_memory" => integer 2582272
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1922
        "start_memory" => integer 2588688
        "stop_time" => float 1732224310.1938
        "stop_memory" => integer 2589248
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1939
        "start_memory" => integer 2591608
        "stop_time" => float 1732224310.1957
        "stop_memory" => integer 2592176
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1965
        "start_memory" => integer 2594104
        "stop_time" => float 1732224310.198
        "stop_memory" => integer 2594688
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1981
        "start_memory" => integer 2598592
        "stop_time" => float 1732224310.1993
        "stop_memory" => integer 2599152
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.1993
        "start_memory" => integer 2601528
        "stop_time" => float 1732224310.2007
        "stop_memory" => integer 2602112
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2015
        "start_memory" => integer 2685576
        "stop_time" => float 1732224310.203
        "stop_memory" => integer 2686152
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2038
        "start_memory" => integer 2718648
        "stop_time" => float 1732224310.2054
        "stop_memory" => integer 2719240
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.206
        "start_memory" => integer 2747008
        "stop_time" => float 1732224310.207
        "stop_memory" => integer 2747592
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.207
        "start_memory" => integer 2749992
        "stop_time" => float 1732224310.2085
        "stop_memory" => integer 2750592
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2092
        "start_memory" => integer 2753760
        "stop_time" => float 1732224310.2105
        "stop_memory" => integer 2754320
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2112
        "start_memory" => integer 2780360
        "stop_time" => float 1732224310.2127
        "stop_memory" => integer 2780936
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2135
        "start_memory" => integer 2809936
        "stop_time" => float 1732224310.2149
        "stop_memory" => integer 2810528
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2156
        "start_memory" => integer 2837208
        "stop_time" => float 1732224310.2172
        "stop_memory" => integer 2837744
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2173
        "start_memory" => integer 2840096
        "stop_time" => float 1732224310.2189
        "stop_memory" => integer 2840672
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2211
        "start_memory" => integer 2852552
        "stop_time" => float 1732224310.2226
        "stop_memory" => integer 2853168
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2226
        "start_memory" => integer 2855824
        "stop_time" => float 1732224310.2243
        "stop_memory" => integer 2856416
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2267
        "start_memory" => integer 2875968
        "stop_time" => float 1732224310.2286
        "stop_memory" => integer 2876544
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2287
        "start_memory" => integer 2878976
        "stop_time" => float 1732224310.231
        "stop_memory" => integer 2879576
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.235
        "start_memory" => integer 2895832
        "stop_time" => float 1732224310.2366
        "stop_memory" => integer 2896376
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2366
        "start_memory" => integer 2898744
        "stop_time" => float 1732224310.2383
        "stop_memory" => integer 2899328
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2391
        "start_memory" => integer 2903760
        "stop_time" => float 1732224310.2407
        "stop_memory" => integer 2904320
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2408
        "start_memory" => integer 2906680
        "stop_time" => float 1732224310.2425
        "stop_memory" => integer 2907264
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2432
        "start_memory" => integer 2926272
        "stop_time" => float 1732224310.2449
        "stop_memory" => integer 2926848
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.245
        "start_memory" => integer 2929240
        "stop_time" => float 1732224310.247
        "stop_memory" => integer 2929832
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2477
        "start_memory" => integer 2948032
        "stop_time" => float 1732224310.2487
        "stop_memory" => integer 2948616
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2487
        "start_memory" => integer 2951024
        "stop_time" => float 1732224310.2498
        "stop_memory" => integer 2951624
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2509
        "start_memory" => integer 2974144
        "stop_time" => float 1732224310.2526
        "stop_memory" => integer 2974704
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2527
        "start_memory" => integer 2977120
        "stop_time" => float 1732224310.2546
        "stop_memory" => integer 2977712
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2553
        "start_memory" => integer 2995856
        "stop_time" => float 1732224310.257
        "stop_memory" => integer 2996392
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2571
        "start_memory" => integer 2998736
        "stop_time" => float 1732224310.2587
        "stop_memory" => integer 2999312
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2596
        "start_memory" => integer 3018504
        "stop_time" => float 1732224310.2611
        "stop_memory" => integer 3019072
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2611
        "start_memory" => integer 3021432
        "stop_time" => float 1732224310.2628
        "stop_memory" => integer 3022016
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2676
        "start_memory" => integer 3028424
        "stop_time" => float 1732224310.2689
        "stop_memory" => integer 3028984
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.269
        "start_memory" => integer 3031344
        "stop_time" => float 1732224310.2709
        "stop_memory" => integer 3031912
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2716
        "start_memory" => integer 3049352
        "stop_time" => float 1732224310.2729
        "stop_memory" => integer 3049920
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.273
        "start_memory" => integer 3052304
        "stop_time" => float 1732224310.2742
        "stop_memory" => integer 3052888
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2747
        "start_memory" => integer 3081536
        "stop_time" => float 1732224310.276
        "stop_memory" => integer 3082112
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.276
        "start_memory" => integer 3084536
        "stop_time" => float 1732224310.2774
        "stop_memory" => integer 3085128
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2782
        "start_memory" => integer 3102384
        "stop_time" => float 1732224310.2796
        "stop_memory" => integer 3102968
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2799
        "start_memory" => integer 3068552
        "stop_time" => float 1732224310.281
        "stop_memory" => integer 3070512
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2814
        "start_memory" => integer 3094720
        "stop_time" => float 1732224310.2826
        "stop_memory" => integer 3096384
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732224310.2826
        "start_memory" => integer 3095968
        "stop_time" => float 1732224310.2837
        "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'],
	);
}