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 1737578631.8526
        "start_memory" => integer 582720
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8526
        "start_memory" => integer 584936
        "stop_time" => float 1737578631.8535
        "stop_memory" => integer 585600
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8535
        "start_memory" => integer 588024
        "stop_time" => float 1737578631.8547
        "stop_memory" => integer 588632
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8547
        "start_memory" => integer 596848
        "stop_time" => float 1737578631.8557
        "stop_memory" => integer 597400
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8557
        "start_memory" => integer 599816
        "stop_time" => float 1737578631.8569
        "stop_memory" => integer 600408
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8569
        "start_memory" => integer 604464
        "stop_time" => float 1737578631.8578
        "stop_memory" => integer 605016
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8578
        "start_memory" => integer 607400
        "stop_time" => float 1737578631.8589
        "stop_memory" => integer 607984
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8589
        "start_memory" => integer 619256
        "stop_time" => float 1737578631.86
        "stop_memory" => integer 619816
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8601
        "start_memory" => integer 622184
        "stop_time" => float 1737578631.8611
        "stop_memory" => integer 622832
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8611
        "start_memory" => integer 641712
        "stop_time" => float 1737578631.8622
        "stop_memory" => integer 642288
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8623
        "start_memory" => integer 644680
        "stop_time" => float 1737578631.8635
        "stop_memory" => integer 645256
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8636
        "start_memory" => integer 658776
        "stop_time" => float 1737578631.8649
        "stop_memory" => integer 659320
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8649
        "start_memory" => integer 661664
        "stop_time" => float 1737578631.8659
        "stop_memory" => integer 662240
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8659
        "start_memory" => integer 674616
        "stop_time" => float 1737578631.8668
        "stop_memory" => integer 675216
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8669
        "start_memory" => integer 676264
        "stop_time" => float 1737578631.8679
        "stop_memory" => integer 676800
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8679
        "start_memory" => integer 679152
        "stop_time" => float 1737578631.869
        "stop_memory" => integer 679728
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8691
        "start_memory" => integer 683536
        "stop_time" => float 1737578631.8701
        "stop_memory" => integer 684216
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8701
        "start_memory" => integer 686560
        "stop_time" => float 1737578631.8713
        "stop_memory" => integer 687136
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8714
        "start_memory" => integer 710720
        "stop_time" => float 1737578631.8724
        "stop_memory" => integer 711320
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8725
        "start_memory" => integer 713720
        "stop_time" => float 1737578631.8735
        "stop_memory" => integer 714320
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8736
        "start_memory" => integer 723472
        "stop_time" => float 1737578631.8746
        "stop_memory" => integer 723976
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8747
        "start_memory" => integer 724616
        "stop_time" => float 1737578631.8756
        "stop_memory" => integer 725192
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8759
        "start_memory" => integer 879032
        "stop_time" => float 1737578631.8768
        "stop_memory" => integer 879616
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8769
        "start_memory" => integer 882016
        "stop_time" => float 1737578631.8779
        "stop_memory" => integer 882616
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.878
        "start_memory" => integer 883600
        "stop_time" => float 1737578631.8791
        "stop_memory" => integer 884176
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8792
        "start_memory" => integer 886576
        "stop_time" => float 1737578631.8803
        "stop_memory" => integer 887176
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8803
        "start_memory" => integer 893432
        "stop_time" => float 1737578631.8812
        "stop_memory" => integer 893992
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8812
        "start_memory" => integer 896360
        "stop_time" => float 1737578631.8823
        "stop_memory" => integer 896952
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8824
        "start_memory" => integer 920136
        "stop_time" => float 1737578631.8834
        "stop_memory" => integer 920672
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.8834
        "start_memory" => integer 923016
        "stop_time" => float 1737578631.8844
        "stop_memory" => integer 923592
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578631.885
        "start_memory" => integer 945984
        "stop_time" => float 1737578631.886
        "stop_memory" => integer 946584
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.6877
        "start_memory" => integer 987496
        "stop_time" => float 1737578632.688
        "stop_memory" => integer 988072
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.688
        "start_memory" => integer 990424
        "stop_time" => float 1737578632.6883
        "stop_memory" => integer 991264
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.6889
        "start_memory" => integer 1002832
        "stop_time" => float 1737578632.6893
        "stop_memory" => integer 1003408
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.6893
        "start_memory" => integer 1005800
        "stop_time" => float 1737578632.6897
        "stop_memory" => integer 1006392
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.6901
        "start_memory" => integer 1018240
        "stop_time" => float 1737578632.6913
        "stop_memory" => integer 1018808
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.6913
        "start_memory" => integer 1021184
        "stop_time" => float 1737578632.6926
        "stop_memory" => integer 1021760
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.6931
        "start_memory" => integer 1033904
        "stop_time" => float 1737578632.6936
        "stop_memory" => integer 1034496
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.6937
        "start_memory" => integer 1040360
        "stop_time" => float 1737578632.6942
        "stop_memory" => integer 1040928
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.6942
        "start_memory" => integer 1043320
        "stop_time" => float 1737578632.6949
        "stop_memory" => integer 1043912
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.6951
        "start_memory" => integer 1052784
        "stop_time" => float 1737578632.6956
        "stop_memory" => integer 1053384
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.6958
        "start_memory" => integer 1059704
        "stop_time" => float 1737578632.6964
        "stop_memory" => integer 1060280
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.6965
        "start_memory" => integer 1065352
        "stop_time" => float 1737578632.697
        "stop_memory" => integer 1065952
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.697
        "start_memory" => integer 1071440
        "stop_time" => float 1737578632.6977
        "stop_memory" => integer 1072016
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.6979
        "start_memory" => integer 1080552
        "stop_time" => float 1737578632.6985
        "stop_memory" => integer 1081136
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.6986
        "start_memory" => integer 1086520
        "stop_time" => float 1737578632.6992
        "stop_memory" => integer 1087104
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.6993
        "start_memory" => integer 1094152
        "stop_time" => float 1737578632.7
        "stop_memory" => integer 1094752
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7001
        "start_memory" => integer 1101944
        "stop_time" => float 1737578632.7008
        "stop_memory" => integer 1102536
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7009
        "start_memory" => integer 1109024
        "stop_time" => float 1737578632.7016
        "stop_memory" => integer 1109616
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7017
        "start_memory" => integer 1115616
        "stop_time" => float 1737578632.7024
        "stop_memory" => integer 1116208
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7026
        "start_memory" => integer 1152504
        "stop_time" => float 1737578632.7032
        "stop_memory" => integer 1153080
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7034
        "start_memory" => integer 1161120
        "stop_time" => float 1737578632.7041
        "stop_memory" => integer 1161720
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7042
        "start_memory" => integer 1169144
        "stop_time" => float 1737578632.7049
        "stop_memory" => integer 1169720
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.705
        "start_memory" => integer 1179088
        "stop_time" => float 1737578632.7057
        "stop_memory" => integer 1179672
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7059
        "start_memory" => integer 1188352
        "stop_time" => float 1737578632.7063
        "stop_memory" => integer 1188904
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7064
        "start_memory" => integer 1191264
        "stop_time" => float 1737578632.7069
        "stop_memory" => integer 1191848
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.707
        "start_memory" => integer 1203728
        "stop_time" => float 1737578632.7083
        "stop_memory" => integer 1204288
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7084
        "start_memory" => integer 1206648
        "stop_time" => float 1737578632.7099
        "stop_memory" => integer 1207216
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.712
        "start_memory" => integer 1250848
        "stop_time" => float 1737578632.7131
        "stop_memory" => integer 1251432
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7182
        "start_memory" => integer 1252032
        "stop_time" => float 1737578632.7187
        "stop_memory" => integer 1252608
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7187
        "start_memory" => integer 1255016
        "stop_time" => float 1737578632.7192
        "stop_memory" => integer 1255608
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7224
        "start_memory" => integer 1267576
        "stop_time" => float 1737578632.723
        "stop_memory" => integer 1268160
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.723
        "start_memory" => integer 1270584
        "stop_time" => float 1737578632.7234
        "stop_memory" => integer 1271184
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7268
        "start_memory" => integer 1283048
        "stop_time" => float 1737578632.7273
        "stop_memory" => integer 1283608
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7273
        "start_memory" => integer 1286000
        "stop_time" => float 1737578632.7279
        "stop_memory" => integer 1287104
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7279
        "start_memory" => integer 1296960
        "stop_time" => float 1737578632.7284
        "stop_memory" => integer 1297560
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7323
        "start_memory" => integer 1306224
        "stop_time" => float 1737578632.7329
        "stop_memory" => integer 1306800
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7329
        "start_memory" => integer 1309216
        "stop_time" => float 1737578632.7334
        "stop_memory" => integer 1309800
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7445
        "start_memory" => integer 1329808
        "stop_time" => float 1737578632.745
        "stop_memory" => integer 1330392
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7451
        "start_memory" => integer 1332816
        "stop_time" => float 1737578632.7455
        "stop_memory" => integer 1333416
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7455
        "start_memory" => integer 1342296
        "stop_time" => float 1737578632.7459
        "stop_memory" => integer 1342872
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7464
        "start_memory" => integer 1349848
        "stop_time" => float 1737578632.7469
        "stop_memory" => integer 1350416
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.747
        "start_memory" => integer 1352800
        "stop_time" => float 1737578632.7475
        "stop_memory" => integer 1353392
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.748
        "start_memory" => integer 1366136
        "stop_time" => float 1737578632.7484
        "stop_memory" => integer 1366720
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7484
        "start_memory" => integer 1369120
        "stop_time" => float 1737578632.7489
        "stop_memory" => integer 1369704
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7523
        "start_memory" => integer 1381936
        "stop_time" => float 1737578632.7527
        "stop_memory" => integer 1382504
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7527
        "start_memory" => integer 1384888
        "stop_time" => float 1737578632.7533
        "stop_memory" => integer 1385480
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.754
        "start_memory" => integer 1394296
        "stop_time" => float 1737578632.7553
        "stop_memory" => integer 1394832
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7553
        "start_memory" => integer 1397184
        "stop_time" => float 1737578632.7571
        "stop_memory" => integer 1397760
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7583
        "start_memory" => integer 1400432
        "stop_time" => float 1737578632.7591
        "stop_memory" => integer 1401032
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7591
        "start_memory" => integer 1403440
        "stop_time" => float 1737578632.7599
        "stop_memory" => integer 1404040
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7627
        "start_memory" => integer 1428200
        "stop_time" => float 1737578632.7636
        "stop_memory" => integer 1428792
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7642
        "start_memory" => integer 1433456
        "stop_time" => float 1737578632.7658
        "stop_memory" => integer 1434016
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7658
        "start_memory" => integer 1436416
        "stop_time" => float 1737578632.7676
        "stop_memory" => integer 1437008
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7708
        "start_memory" => integer 1446656
        "stop_time" => float 1737578632.771
        "stop_memory" => integer 1447240
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7728
        "start_memory" => integer 1451040
        "stop_time" => float 1737578632.7736
        "stop_memory" => integer 1451608
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7737
        "start_memory" => integer 1453984
        "stop_time" => float 1737578632.7746
        "stop_memory" => integer 1454576
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7761
        "start_memory" => integer 1499968
        "stop_time" => float 1737578632.777
        "stop_memory" => integer 1500552
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.777
        "start_memory" => integer 1502992
        "stop_time" => float 1737578632.7779
        "stop_memory" => integer 1503592
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7785
        "start_memory" => integer 1517824
        "stop_time" => float 1737578632.7795
        "stop_memory" => integer 1518416
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7796
        "start_memory" => integer 1520848
        "stop_time" => float 1737578632.7806
        "stop_memory" => integer 1521440
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7821
        "start_memory" => integer 1525344
        "stop_time" => float 1737578632.7831
        "stop_memory" => integer 1525920
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7831
        "start_memory" => integer 1528336
        "stop_time" => float 1737578632.7842
        "stop_memory" => integer 1528936
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7849
        "start_memory" => integer 1573304
        "stop_time" => float 1737578632.7857
        "stop_memory" => integer 1573896
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7857
        "start_memory" => integer 1576328
        "stop_time" => float 1737578632.7867
        "stop_memory" => integer 1576936
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7868
        "start_memory" => integer 1581416
        "stop_time" => float 1737578632.7876
        "stop_memory" => integer 1581984
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7876
        "start_memory" => integer 1584392
        "stop_time" => float 1737578632.7883
        "stop_memory" => integer 1584992
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7892
        "start_memory" => integer 1612584
        "stop_time" => float 1737578632.7899
        "stop_memory" => integer 1613160
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7899
        "start_memory" => integer 1615568
        "stop_time" => float 1737578632.7908
        "stop_memory" => integer 1616168
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7916
        "start_memory" => integer 1637424
        "stop_time" => float 1737578632.7923
        "stop_memory" => integer 1638000
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7923
        "start_memory" => integer 1640400
        "stop_time" => float 1737578632.793
        "stop_memory" => integer 1641000
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7936
        "start_memory" => integer 1652928
        "stop_time" => float 1737578632.7944
        "stop_memory" => integer 1653520
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7945
        "start_memory" => integer 1655960
        "stop_time" => float 1737578632.7953
        "stop_memory" => integer 1656568
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.796
        "start_memory" => integer 1672152
        "stop_time" => float 1737578632.7969
        "stop_memory" => integer 1672752
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7969
        "start_memory" => integer 1675240
        "stop_time" => float 1737578632.7979
        "stop_memory" => integer 1675856
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.798
        "start_memory" => integer 1680416
        "stop_time" => float 1737578632.7988
        "stop_memory" => integer 1681008
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.7988
        "start_memory" => integer 1683472
        "stop_time" => float 1737578632.7997
        "stop_memory" => integer 1684088
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8005
        "start_memory" => integer 1729672
        "stop_time" => float 1737578632.8014
        "stop_memory" => integer 1730264
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8014
        "start_memory" => integer 1732752
        "stop_time" => float 1737578632.8024
        "stop_memory" => integer 1733368
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8033
        "start_memory" => integer 1753216
        "stop_time" => float 1737578632.8042
        "stop_memory" => integer 1753808
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8042
        "start_memory" => integer 1756288
        "stop_time" => float 1737578632.805
        "stop_memory" => integer 1756888
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8057
        "start_memory" => integer 1775424
        "stop_time" => float 1737578632.8067
        "stop_memory" => integer 1776024
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8068
        "start_memory" => integer 1778496
        "stop_time" => float 1737578632.8081
        "stop_memory" => integer 1779112
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.809
        "start_memory" => integer 1821856
        "stop_time" => float 1737578632.8099
        "stop_memory" => integer 1822448
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.81
        "start_memory" => integer 1824920
        "stop_time" => float 1737578632.811
        "stop_memory" => integer 1825536
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8127
        "start_memory" => integer 1853424
        "stop_time" => float 1737578632.8137
        "stop_memory" => integer 1854000
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8138
        "start_memory" => integer 1856440
        "stop_time" => float 1737578632.8147
        "stop_memory" => integer 1857048
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8155
        "start_memory" => integer 1872664
        "stop_time" => float 1737578632.8166
        "stop_memory" => integer 1873184
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8167
        "start_memory" => integer 1875544
        "stop_time" => float 1737578632.818
        "stop_memory" => integer 1876120
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8186
        "start_memory" => integer 1891240
        "stop_time" => float 1737578632.8192
        "stop_memory" => integer 1891808
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8193
        "start_memory" => integer 1894168
        "stop_time" => float 1737578632.82
        "stop_memory" => integer 1894752
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8232
        "start_memory" => integer 1901680
        "stop_time" => float 1737578632.8249
        "stop_memory" => integer 1902240
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.825
        "start_memory" => integer 1904600
        "stop_time" => float 1737578632.8272
        "stop_memory" => integer 1905184
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8302
        "start_memory" => integer 1911832
        "stop_time" => float 1737578632.8322
        "stop_memory" => integer 1912376
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8323
        "start_memory" => integer 1914736
        "stop_time" => float 1737578632.8345
        "stop_memory" => integer 1915312
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8355
        "start_memory" => integer 1917592
        "stop_time" => float 1737578632.8374
        "stop_memory" => integer 1918144
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8374
        "start_memory" => integer 1920488
        "stop_time" => float 1737578632.8398
        "stop_memory" => integer 1921064
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8406
        "start_memory" => integer 1927504
        "stop_time" => float 1737578632.8425
        "stop_memory" => integer 1928056
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8426
        "start_memory" => integer 1930400
        "stop_time" => float 1737578632.8447
        "stop_memory" => integer 1932000
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8462
        "start_memory" => integer 1943088
        "stop_time" => float 1737578632.8485
        "stop_memory" => integer 1943656
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8485
        "start_memory" => integer 1946024
        "stop_time" => float 1737578632.8505
        "stop_memory" => integer 1946608
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8528
        "start_memory" => integer 1952960
        "stop_time" => float 1737578632.8542
        "stop_memory" => integer 1953504
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8542
        "start_memory" => integer 1955848
        "stop_time" => float 1737578632.8558
        "stop_memory" => integer 1956424
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8571
        "start_memory" => integer 1961312
        "stop_time" => float 1737578632.8584
        "stop_memory" => integer 1961896
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8585
        "start_memory" => integer 1964288
        "stop_time" => float 1737578632.86
        "stop_memory" => integer 1964880
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8607
        "start_memory" => integer 1979480
        "stop_time" => float 1737578632.8623
        "stop_memory" => integer 1980048
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8624
        "start_memory" => integer 1982464
        "stop_time" => float 1737578632.8645
        "stop_memory" => integer 1983056
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8655
        "start_memory" => integer 1997336
        "stop_time" => float 1737578632.8671
        "stop_memory" => integer 1997904
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8672
        "start_memory" => integer 2000320
        "stop_time" => float 1737578632.869
        "stop_memory" => integer 2000912
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8698
        "start_memory" => integer 2015168
        "stop_time" => float 1737578632.8716
        "stop_memory" => integer 2015736
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8716
        "start_memory" => integer 2018152
        "stop_time" => float 1737578632.8734
        "stop_memory" => integer 2018744
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8742
        "start_memory" => integer 2033016
        "stop_time" => float 1737578632.8756
        "stop_memory" => integer 2033584
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8757
        "start_memory" => integer 2036000
        "stop_time" => float 1737578632.8772
        "stop_memory" => integer 2036592
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8778
        "start_memory" => integer 2050848
        "stop_time" => float 1737578632.8792
        "stop_memory" => integer 2051416
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8793
        "start_memory" => integer 2053832
        "stop_time" => float 1737578632.8807
        "stop_memory" => integer 2054424
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8814
        "start_memory" => integer 2068680
        "stop_time" => float 1737578632.8827
        "stop_memory" => integer 2069248
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8828
        "start_memory" => integer 2071664
        "stop_time" => float 1737578632.8845
        "stop_memory" => integer 2072256
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8853
        "start_memory" => integer 2086528
        "stop_time" => float 1737578632.8871
        "stop_memory" => integer 2087096
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8871
        "start_memory" => integer 2089512
        "stop_time" => float 1737578632.8888
        "stop_memory" => integer 2090104
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8894
        "start_memory" => integer 2104360
        "stop_time" => float 1737578632.8909
        "stop_memory" => integer 2104928
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.891
        "start_memory" => integer 2107344
        "stop_time" => float 1737578632.8929
        "stop_memory" => integer 2107936
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8937
        "start_memory" => integer 2122288
        "stop_time" => float 1737578632.8953
        "stop_memory" => integer 2122856
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8953
        "start_memory" => integer 2125272
        "stop_time" => float 1737578632.8969
        "stop_memory" => integer 2125864
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8978
        "start_memory" => integer 2140120
        "stop_time" => float 1737578632.8997
        "stop_memory" => integer 2140688
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.8997
        "start_memory" => integer 2143104
        "stop_time" => float 1737578632.9018
        "stop_memory" => integer 2143696
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9026
        "start_memory" => integer 2157952
        "stop_time" => float 1737578632.9045
        "stop_memory" => integer 2158520
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9045
        "start_memory" => integer 2160936
        "stop_time" => float 1737578632.9066
        "stop_memory" => integer 2161528
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9075
        "start_memory" => integer 2175768
        "stop_time" => float 1737578632.9093
        "stop_memory" => integer 2176336
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9094
        "start_memory" => integer 2178752
        "stop_time" => float 1737578632.9113
        "stop_memory" => integer 2179344
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9123
        "start_memory" => integer 2193600
        "stop_time" => float 1737578632.9138
        "stop_memory" => integer 2194168
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9139
        "start_memory" => integer 2196584
        "stop_time" => float 1737578632.9155
        "stop_memory" => integer 2197176
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9163
        "start_memory" => integer 2211448
        "stop_time" => float 1737578632.9179
        "stop_memory" => integer 2212016
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.918
        "start_memory" => integer 2214432
        "stop_time" => float 1737578632.9197
        "stop_memory" => integer 2215024
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9206
        "start_memory" => integer 2229312
        "stop_time" => float 1737578632.9223
        "stop_memory" => integer 2229880
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9224
        "start_memory" => integer 2232296
        "stop_time" => float 1737578632.9242
        "stop_memory" => integer 2232888
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.925
        "start_memory" => integer 2247160
        "stop_time" => float 1737578632.9267
        "stop_memory" => integer 2247728
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9268
        "start_memory" => integer 2250144
        "stop_time" => float 1737578632.9285
        "stop_memory" => integer 2250736
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9293
        "start_memory" => integer 2265136
        "stop_time" => float 1737578632.931
        "stop_memory" => integer 2265704
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9311
        "start_memory" => integer 2268120
        "stop_time" => float 1737578632.9332
        "stop_memory" => integer 2268712
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9341
        "start_memory" => integer 2283000
        "stop_time" => float 1737578632.936
        "stop_memory" => integer 2283568
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.936
        "start_memory" => integer 2285984
        "stop_time" => float 1737578632.9381
        "stop_memory" => integer 2286576
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9388
        "start_memory" => integer 2300848
        "stop_time" => float 1737578632.9406
        "stop_memory" => integer 2301416
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9407
        "start_memory" => integer 2303832
        "stop_time" => float 1737578632.9427
        "stop_memory" => integer 2304424
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9437
        "start_memory" => integer 2318696
        "stop_time" => float 1737578632.9455
        "stop_memory" => integer 2319264
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9456
        "start_memory" => integer 2321680
        "stop_time" => float 1737578632.9476
        "stop_memory" => integer 2322272
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9485
        "start_memory" => integer 2336528
        "stop_time" => float 1737578632.9503
        "stop_memory" => integer 2337096
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9504
        "start_memory" => integer 2339512
        "stop_time" => float 1737578632.9524
        "stop_memory" => integer 2340104
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9532
        "start_memory" => integer 2354360
        "stop_time" => float 1737578632.9567
        "stop_memory" => integer 2354928
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9568
        "start_memory" => integer 2357344
        "stop_time" => float 1737578632.9587
        "stop_memory" => integer 2357936
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9596
        "start_memory" => integer 2372208
        "stop_time" => float 1737578632.9614
        "stop_memory" => integer 2372776
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9615
        "start_memory" => integer 2375192
        "stop_time" => float 1737578632.9635
        "stop_memory" => integer 2375784
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9643
        "start_memory" => integer 2390040
        "stop_time" => float 1737578632.9659
        "stop_memory" => integer 2390608
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9659
        "start_memory" => integer 2393024
        "stop_time" => float 1737578632.9679
        "stop_memory" => integer 2393616
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9698
        "start_memory" => integer 2408112
        "stop_time" => float 1737578632.9725
        "stop_memory" => integer 2408680
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9726
        "start_memory" => integer 2411096
        "stop_time" => float 1737578632.9745
        "stop_memory" => integer 2411688
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9771
        "start_memory" => integer 2420808
        "stop_time" => float 1737578632.9781
        "stop_memory" => integer 2421360
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9782
        "start_memory" => integer 2423720
        "stop_time" => float 1737578632.9793
        "stop_memory" => integer 2424304
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9802
        "start_memory" => integer 2448240
        "stop_time" => float 1737578632.9813
        "stop_memory" => integer 2448816
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9814
        "start_memory" => integer 2451192
        "stop_time" => float 1737578632.9842
        "stop_memory" => integer 2451784
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9852
        "start_memory" => integer 2479496
        "stop_time" => float 1737578632.9866
        "stop_memory" => integer 2480048
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9867
        "start_memory" => integer 2482448
        "stop_time" => float 1737578632.9884
        "stop_memory" => integer 2483032
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9906
        "start_memory" => integer 2491848
        "stop_time" => float 1737578632.9922
        "stop_memory" => integer 2492440
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9923
        "start_memory" => integer 2494848
        "stop_time" => float 1737578632.9939
        "stop_memory" => integer 2495448
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9947
        "start_memory" => integer 2506712
        "stop_time" => float 1737578632.9967
        "stop_memory" => integer 2507304
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578632.9967
        "start_memory" => integer 2509736
        "stop_time" => float 1737578632.9985
        "stop_memory" => integer 2510328
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633
        "start_memory" => integer 2523592
        "stop_time" => float 1737578633.0015
        "stop_memory" => integer 2524168
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0016
        "start_memory" => integer 2526584
        "stop_time" => float 1737578633.0032
        "stop_memory" => integer 2527184
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0052
        "start_memory" => integer 2537864
        "stop_time" => float 1737578633.0061
        "stop_memory" => integer 2538456
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0093
        "start_memory" => integer 2547832
        "stop_time" => float 1737578633.0114
        "stop_memory" => integer 2548408
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0117
        "start_memory" => integer 2556752
        "stop_time" => float 1737578633.0132
        "stop_memory" => integer 2557336
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0148
        "start_memory" => integer 2566416
        "stop_time" => float 1737578633.0163
        "stop_memory" => integer 2566968
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0163
        "start_memory" => integer 2569352
        "stop_time" => float 1737578633.0181
        "stop_memory" => integer 2569936
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0188
        "start_memory" => integer 2572944
        "stop_time" => float 1737578633.0205
        "stop_memory" => integer 2573504
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0206
        "start_memory" => integer 2575888
        "stop_time" => float 1737578633.0225
        "stop_memory" => integer 2576472
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0232
        "start_memory" => integer 2579480
        "stop_time" => float 1737578633.025
        "stop_memory" => integer 2580040
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.025
        "start_memory" => integer 2582424
        "stop_time" => float 1737578633.0269
        "stop_memory" => integer 2583008
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0279
        "start_memory" => integer 2589424
        "stop_time" => float 1737578633.0294
        "stop_memory" => integer 2589984
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0294
        "start_memory" => integer 2592344
        "stop_time" => float 1737578633.031
        "stop_memory" => integer 2592912
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0317
        "start_memory" => integer 2594840
        "stop_time" => float 1737578633.0332
        "stop_memory" => integer 2595424
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0332
        "start_memory" => integer 2599328
        "stop_time" => float 1737578633.0344
        "stop_memory" => integer 2599888
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0344
        "start_memory" => integer 2602264
        "stop_time" => float 1737578633.0358
        "stop_memory" => integer 2602848
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0364
        "start_memory" => integer 2686312
        "stop_time" => float 1737578633.0379
        "stop_memory" => integer 2686888
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0384
        "start_memory" => integer 2719384
        "stop_time" => float 1737578633.0399
        "stop_memory" => integer 2719976
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0403
        "start_memory" => integer 2747744
        "stop_time" => float 1737578633.0411
        "stop_memory" => integer 2748328
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0411
        "start_memory" => integer 2750728
        "stop_time" => float 1737578633.0419
        "stop_memory" => integer 2751328
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0424
        "start_memory" => integer 2754496
        "stop_time" => float 1737578633.0435
        "stop_memory" => integer 2755056
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.044
        "start_memory" => integer 2781096
        "stop_time" => float 1737578633.0452
        "stop_memory" => integer 2781672
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0457
        "start_memory" => integer 2810672
        "stop_time" => float 1737578633.0469
        "stop_memory" => integer 2811264
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0474
        "start_memory" => integer 2837944
        "stop_time" => float 1737578633.0486
        "stop_memory" => integer 2838480
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0486
        "start_memory" => integer 2840832
        "stop_time" => float 1737578633.0501
        "stop_memory" => integer 2841408
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.052
        "start_memory" => integer 2853288
        "stop_time" => float 1737578633.0532
        "stop_memory" => integer 2853904
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0533
        "start_memory" => integer 2856560
        "stop_time" => float 1737578633.0546
        "stop_memory" => integer 2857152
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0564
        "start_memory" => integer 2876704
        "stop_time" => float 1737578633.058
        "stop_memory" => integer 2877280
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.058
        "start_memory" => integer 2879712
        "stop_time" => float 1737578633.0598
        "stop_memory" => integer 2880312
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0633
        "start_memory" => integer 2896568
        "stop_time" => float 1737578633.0647
        "stop_memory" => integer 2897112
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0647
        "start_memory" => integer 2899480
        "stop_time" => float 1737578633.0664
        "stop_memory" => integer 2900064
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0671
        "start_memory" => integer 2904496
        "stop_time" => float 1737578633.0688
        "stop_memory" => integer 2905056
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0689
        "start_memory" => integer 2907416
        "stop_time" => float 1737578633.0706
        "stop_memory" => integer 2908000
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0714
        "start_memory" => integer 2927008
        "stop_time" => float 1737578633.0732
        "stop_memory" => integer 2927584
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0732
        "start_memory" => integer 2929976
        "stop_time" => float 1737578633.0752
        "stop_memory" => integer 2930568
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0759
        "start_memory" => integer 2948768
        "stop_time" => float 1737578633.0767
        "stop_memory" => integer 2949352
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0768
        "start_memory" => integer 2951760
        "stop_time" => float 1737578633.0777
        "stop_memory" => integer 2952360
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0786
        "start_memory" => integer 2974880
        "stop_time" => float 1737578633.08
        "stop_memory" => integer 2975440
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0801
        "start_memory" => integer 2977856
        "stop_time" => float 1737578633.0816
        "stop_memory" => integer 2978448
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0821
        "start_memory" => integer 2996592
        "stop_time" => float 1737578633.0834
        "stop_memory" => integer 2997128
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0834
        "start_memory" => integer 2999472
        "stop_time" => float 1737578633.0846
        "stop_memory" => integer 3000048
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0853
        "start_memory" => integer 3019216
        "stop_time" => float 1737578633.0864
        "stop_memory" => integer 3019784
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0865
        "start_memory" => integer 3022160
        "stop_time" => float 1737578633.0878
        "stop_memory" => integer 3022744
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0917
        "start_memory" => integer 3029120
        "stop_time" => float 1737578633.0929
        "stop_memory" => integer 3029680
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0929
        "start_memory" => integer 3032040
        "stop_time" => float 1737578633.0941
        "stop_memory" => integer 3032608
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0947
        "start_memory" => integer 3050048
        "stop_time" => float 1737578633.0961
        "stop_memory" => integer 3050616
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0962
        "start_memory" => integer 3053000
        "stop_time" => float 1737578633.0978
        "stop_memory" => integer 3053584
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.0986
        "start_memory" => integer 3082232
        "stop_time" => float 1737578633.1001
        "stop_memory" => integer 3082808
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.1002
        "start_memory" => integer 3085232
        "stop_time" => float 1737578633.1015
        "stop_memory" => integer 3085824
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.1024
        "start_memory" => integer 3103080
        "stop_time" => float 1737578633.1037
        "stop_memory" => integer 3103664
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.104
        "start_memory" => integer 3069248
        "stop_time" => float 1737578633.1053
        "stop_memory" => integer 3071208
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.1056
        "start_memory" => integer 3095416
        "stop_time" => float 1737578633.1069
        "stop_memory" => integer 3097080
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737578633.1069
        "start_memory" => integer 3096664
        "stop_time" => float 1737578633.1079
        "stop_memory" => integer 3098328
    )
)

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'],
	);
}