Modules

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/kohana/profiler.php on line 14.

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(27) ""guide/api/Kohana_Profiler""
        "start_time" => float 1734916461.5874
        "start_memory" => integer 581992
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.5874
        "start_memory" => integer 584200
        "stop_time" => float 1734916461.5888
        "stop_memory" => integer 584864
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.5889
        "start_memory" => integer 587288
        "stop_time" => float 1734916461.5902
        "stop_memory" => integer 587896
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.5902
        "start_memory" => integer 596112
        "stop_time" => float 1734916461.5913
        "stop_memory" => integer 596664
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.5913
        "start_memory" => integer 599080
        "stop_time" => float 1734916461.5924
        "stop_memory" => integer 599672
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.5925
        "start_memory" => integer 603728
        "stop_time" => float 1734916461.5934
        "stop_memory" => integer 604280
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.5934
        "start_memory" => integer 606664
        "stop_time" => float 1734916461.5944
        "stop_memory" => integer 607248
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.5945
        "start_memory" => integer 618520
        "stop_time" => float 1734916461.5953
        "stop_memory" => integer 619080
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.5953
        "start_memory" => integer 621448
        "stop_time" => float 1734916461.5964
        "stop_memory" => integer 622096
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.5964
        "start_memory" => integer 640976
        "stop_time" => float 1734916461.5975
        "stop_memory" => integer 641552
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.5975
        "start_memory" => integer 643944
        "stop_time" => float 1734916461.5986
        "stop_memory" => integer 644520
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.5987
        "start_memory" => integer 658040
        "stop_time" => float 1734916461.5999
        "stop_memory" => integer 658584
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.5999
        "start_memory" => integer 660928
        "stop_time" => float 1734916461.601
        "stop_memory" => integer 661504
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.601
        "start_memory" => integer 673880
        "stop_time" => float 1734916461.6019
        "stop_memory" => integer 674480
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.6019
        "start_memory" => integer 675528
        "stop_time" => float 1734916461.6028
        "stop_memory" => integer 676064
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.6028
        "start_memory" => integer 678416
        "stop_time" => float 1734916461.6039
        "stop_memory" => integer 678992
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.604
        "start_memory" => integer 682800
        "stop_time" => float 1734916461.6049
        "stop_memory" => integer 683480
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.6049
        "start_memory" => integer 685824
        "stop_time" => float 1734916461.6059
        "stop_memory" => integer 686400
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.606
        "start_memory" => integer 709984
        "stop_time" => float 1734916461.6069
        "stop_memory" => integer 710584
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.607
        "start_memory" => integer 712984
        "stop_time" => float 1734916461.6081
        "stop_memory" => integer 713584
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.6082
        "start_memory" => integer 722736
        "stop_time" => float 1734916461.6092
        "stop_memory" => integer 723240
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.6092
        "start_memory" => integer 723880
        "stop_time" => float 1734916461.6101
        "stop_memory" => integer 724456
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.6103
        "start_memory" => integer 878288
        "stop_time" => float 1734916461.6113
        "stop_memory" => integer 878872
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.6113
        "start_memory" => integer 881272
        "stop_time" => float 1734916461.6124
        "stop_memory" => integer 881872
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.6124
        "start_memory" => integer 882856
        "stop_time" => float 1734916461.6134
        "stop_memory" => integer 883432
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.6134
        "start_memory" => integer 885832
        "stop_time" => float 1734916461.6144
        "stop_memory" => integer 886432
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.6144
        "start_memory" => integer 892688
        "stop_time" => float 1734916461.6152
        "stop_memory" => integer 893248
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.6153
        "start_memory" => integer 895616
        "stop_time" => float 1734916461.6163
        "stop_memory" => integer 896208
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.6164
        "start_memory" => integer 919144
        "stop_time" => float 1734916461.6173
        "stop_memory" => integer 919680
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.6174
        "start_memory" => integer 922024
        "stop_time" => float 1734916461.6184
        "stop_memory" => integer 922600
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916461.6191
        "start_memory" => integer 945240
        "stop_time" => float 1734916461.6202
        "stop_memory" => integer 945840
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2647
        "start_memory" => integer 986752
        "stop_time" => float 1734916462.2649
        "stop_memory" => integer 987328
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.265
        "start_memory" => integer 989680
        "stop_time" => float 1734916462.2652
        "stop_memory" => integer 990520
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2655
        "start_memory" => integer 1002088
        "stop_time" => float 1734916462.2657
        "stop_memory" => integer 1002664
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2658
        "start_memory" => integer 1005056
        "stop_time" => float 1734916462.266
        "stop_memory" => integer 1005648
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2663
        "start_memory" => integer 1017496
        "stop_time" => float 1734916462.2671
        "stop_memory" => integer 1018064
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2672
        "start_memory" => integer 1020440
        "stop_time" => float 1734916462.2681
        "stop_memory" => integer 1021016
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2685
        "start_memory" => integer 1033160
        "stop_time" => float 1734916462.2689
        "stop_memory" => integer 1033752
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2689
        "start_memory" => integer 1039616
        "stop_time" => float 1734916462.2693
        "stop_memory" => integer 1040184
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2693
        "start_memory" => integer 1042576
        "stop_time" => float 1734916462.2698
        "stop_memory" => integer 1043168
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2699
        "start_memory" => integer 1052040
        "stop_time" => float 1734916462.2703
        "stop_memory" => integer 1052640
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2704
        "start_memory" => integer 1058960
        "stop_time" => float 1734916462.2708
        "stop_memory" => integer 1059536
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2709
        "start_memory" => integer 1064608
        "stop_time" => float 1734916462.2713
        "stop_memory" => integer 1065208
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2715
        "start_memory" => integer 1070696
        "stop_time" => float 1734916462.272
        "stop_memory" => integer 1071272
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2722
        "start_memory" => integer 1079808
        "stop_time" => float 1734916462.2726
        "stop_memory" => integer 1080392
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2727
        "start_memory" => integer 1085776
        "stop_time" => float 1734916462.2731
        "stop_memory" => integer 1086360
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2732
        "start_memory" => integer 1093408
        "stop_time" => float 1734916462.2736
        "stop_memory" => integer 1094008
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2737
        "start_memory" => integer 1101200
        "stop_time" => float 1734916462.2741
        "stop_memory" => integer 1101792
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2742
        "start_memory" => integer 1108280
        "stop_time" => float 1734916462.2746
        "stop_memory" => integer 1108872
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2747
        "start_memory" => integer 1114872
        "stop_time" => float 1734916462.2751
        "stop_memory" => integer 1115464
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2752
        "start_memory" => integer 1151760
        "stop_time" => float 1734916462.2756
        "stop_memory" => integer 1152336
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2758
        "start_memory" => integer 1160376
        "stop_time" => float 1734916462.2763
        "stop_memory" => integer 1160976
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2764
        "start_memory" => integer 1168400
        "stop_time" => float 1734916462.2768
        "stop_memory" => integer 1168976
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2769
        "start_memory" => integer 1178344
        "stop_time" => float 1734916462.2773
        "stop_memory" => integer 1178928
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2774
        "start_memory" => integer 1187608
        "stop_time" => float 1734916462.2777
        "stop_memory" => integer 1188160
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2777
        "start_memory" => integer 1190520
        "stop_time" => float 1734916462.278
        "stop_memory" => integer 1191104
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2781
        "start_memory" => integer 1202984
        "stop_time" => float 1734916462.2789
        "stop_memory" => integer 1203544
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.279
        "start_memory" => integer 1205904
        "stop_time" => float 1734916462.28
        "stop_memory" => integer 1206472
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2813
        "start_memory" => integer 1250104
        "stop_time" => float 1734916462.2822
        "stop_memory" => integer 1250688
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2859
        "start_memory" => integer 1251288
        "stop_time" => float 1734916462.2863
        "stop_memory" => integer 1251864
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2863
        "start_memory" => integer 1254272
        "stop_time" => float 1734916462.2867
        "stop_memory" => integer 1254864
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.289
        "start_memory" => integer 1266832
        "stop_time" => float 1734916462.2893
        "stop_memory" => integer 1267416
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2893
        "start_memory" => integer 1269840
        "stop_time" => float 1734916462.2897
        "stop_memory" => integer 1270440
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2921
        "start_memory" => integer 1282304
        "stop_time" => float 1734916462.2924
        "stop_memory" => integer 1282864
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2924
        "start_memory" => integer 1285256
        "stop_time" => float 1734916462.2928
        "stop_memory" => integer 1286360
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2928
        "start_memory" => integer 1296216
        "stop_time" => float 1734916462.2932
        "stop_memory" => integer 1296816
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2958
        "start_memory" => integer 1305480
        "stop_time" => float 1734916462.2961
        "stop_memory" => integer 1306056
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.2962
        "start_memory" => integer 1308472
        "stop_time" => float 1734916462.2966
        "stop_memory" => integer 1309056
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3039
        "start_memory" => integer 1329064
        "stop_time" => float 1734916462.3043
        "stop_memory" => integer 1329648
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3043
        "start_memory" => integer 1332072
        "stop_time" => float 1734916462.3047
        "stop_memory" => integer 1332672
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3047
        "start_memory" => integer 1341552
        "stop_time" => float 1734916462.3051
        "stop_memory" => integer 1342128
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3054
        "start_memory" => integer 1349104
        "stop_time" => float 1734916462.3058
        "stop_memory" => integer 1349672
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3059
        "start_memory" => integer 1352056
        "stop_time" => float 1734916462.3062
        "stop_memory" => integer 1352648
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3067
        "start_memory" => integer 1365416
        "stop_time" => float 1734916462.307
        "stop_memory" => integer 1366000
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.307
        "start_memory" => integer 1368400
        "stop_time" => float 1734916462.3074
        "stop_memory" => integer 1368984
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3102
        "start_memory" => integer 1381224
        "stop_time" => float 1734916462.3105
        "stop_memory" => integer 1381792
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3106
        "start_memory" => integer 1384192
        "stop_time" => float 1734916462.3109
        "stop_memory" => integer 1384784
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3114
        "start_memory" => integer 1393600
        "stop_time" => float 1734916462.3123
        "stop_memory" => integer 1394136
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3124
        "start_memory" => integer 1396488
        "stop_time" => float 1734916462.3134
        "stop_memory" => integer 1397064
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3142
        "start_memory" => integer 1399736
        "stop_time" => float 1734916462.3148
        "stop_memory" => integer 1400336
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3148
        "start_memory" => integer 1402744
        "stop_time" => float 1734916462.3154
        "stop_memory" => integer 1403344
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3174
        "start_memory" => integer 1427504
        "stop_time" => float 1734916462.3179
        "stop_memory" => integer 1428096
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3182
        "start_memory" => integer 1432760
        "stop_time" => float 1734916462.3191
        "stop_memory" => integer 1433320
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3192
        "start_memory" => integer 1435720
        "stop_time" => float 1734916462.3204
        "stop_memory" => integer 1436312
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3222
        "start_memory" => integer 1445960
        "stop_time" => float 1734916462.3223
        "stop_memory" => integer 1446544
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3233
        "start_memory" => integer 1450344
        "stop_time" => float 1734916462.3239
        "stop_memory" => integer 1450912
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3239
        "start_memory" => integer 1453288
        "stop_time" => float 1734916462.3244
        "stop_memory" => integer 1453880
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3254
        "start_memory" => integer 1499256
        "stop_time" => float 1734916462.3259
        "stop_memory" => integer 1499840
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.326
        "start_memory" => integer 1502280
        "stop_time" => float 1734916462.3266
        "stop_memory" => integer 1502880
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3268
        "start_memory" => integer 1517112
        "stop_time" => float 1734916462.3274
        "stop_memory" => integer 1517704
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3274
        "start_memory" => integer 1520136
        "stop_time" => float 1734916462.3281
        "stop_memory" => integer 1520728
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3288
        "start_memory" => integer 1524632
        "stop_time" => float 1734916462.3294
        "stop_memory" => integer 1525208
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3294
        "start_memory" => integer 1527624
        "stop_time" => float 1734916462.33
        "stop_memory" => integer 1528224
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3303
        "start_memory" => integer 1572592
        "stop_time" => float 1734916462.3309
        "stop_memory" => integer 1573184
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.331
        "start_memory" => integer 1575616
        "stop_time" => float 1734916462.3317
        "stop_memory" => integer 1576224
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3317
        "start_memory" => integer 1580704
        "stop_time" => float 1734916462.3322
        "stop_memory" => integer 1581272
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3323
        "start_memory" => integer 1583680
        "stop_time" => float 1734916462.333
        "stop_memory" => integer 1584280
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3335
        "start_memory" => integer 1611872
        "stop_time" => float 1734916462.334
        "stop_memory" => integer 1612448
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.334
        "start_memory" => integer 1614856
        "stop_time" => float 1734916462.3347
        "stop_memory" => integer 1615456
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.335
        "start_memory" => integer 1636712
        "stop_time" => float 1734916462.3356
        "stop_memory" => integer 1637288
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3356
        "start_memory" => integer 1639688
        "stop_time" => float 1734916462.3363
        "stop_memory" => integer 1640288
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3367
        "start_memory" => integer 1652216
        "stop_time" => float 1734916462.3373
        "stop_memory" => integer 1652808
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3373
        "start_memory" => integer 1655248
        "stop_time" => float 1734916462.338
        "stop_memory" => integer 1655856
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3384
        "start_memory" => integer 1671440
        "stop_time" => float 1734916462.3392
        "stop_memory" => integer 1672040
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3393
        "start_memory" => integer 1674528
        "stop_time" => float 1734916462.3401
        "stop_memory" => integer 1675144
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3402
        "start_memory" => integer 1679704
        "stop_time" => float 1734916462.3408
        "stop_memory" => integer 1680296
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3409
        "start_memory" => integer 1682760
        "stop_time" => float 1734916462.3416
        "stop_memory" => integer 1683376
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3423
        "start_memory" => integer 1728944
        "stop_time" => float 1734916462.3429
        "stop_memory" => integer 1729536
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.343
        "start_memory" => integer 1732024
        "stop_time" => float 1734916462.3438
        "stop_memory" => integer 1732640
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3442
        "start_memory" => integer 1752488
        "stop_time" => float 1734916462.3449
        "stop_memory" => integer 1753080
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3449
        "start_memory" => integer 1755560
        "stop_time" => float 1734916462.3456
        "stop_memory" => integer 1756160
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.346
        "start_memory" => integer 1774696
        "stop_time" => float 1734916462.3467
        "stop_memory" => integer 1775296
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3467
        "start_memory" => integer 1777768
        "stop_time" => float 1734916462.3475
        "stop_memory" => integer 1778384
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3479
        "start_memory" => integer 1821128
        "stop_time" => float 1734916462.3487
        "stop_memory" => integer 1821720
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3487
        "start_memory" => integer 1824192
        "stop_time" => float 1734916462.3494
        "stop_memory" => integer 1824808
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3505
        "start_memory" => integer 1852696
        "stop_time" => float 1734916462.3511
        "stop_memory" => integer 1853272
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3511
        "start_memory" => integer 1855712
        "stop_time" => float 1734916462.3518
        "stop_memory" => integer 1856320
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3523
        "start_memory" => integer 1871936
        "stop_time" => float 1734916462.3531
        "stop_memory" => integer 1872456
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3531
        "start_memory" => integer 1874816
        "stop_time" => float 1734916462.3541
        "stop_memory" => integer 1875392
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3544
        "start_memory" => integer 1890512
        "stop_time" => float 1734916462.3549
        "stop_memory" => integer 1891080
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3549
        "start_memory" => integer 1893440
        "stop_time" => float 1734916462.3555
        "stop_memory" => integer 1894024
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3576
        "start_memory" => integer 1900952
        "stop_time" => float 1734916462.3585
        "stop_memory" => integer 1901512
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3585
        "start_memory" => integer 1903872
        "stop_time" => float 1734916462.3601
        "stop_memory" => integer 1904456
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3615
        "start_memory" => integer 1911104
        "stop_time" => float 1734916462.3624
        "stop_memory" => integer 1911648
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3624
        "start_memory" => integer 1914008
        "stop_time" => float 1734916462.3634
        "stop_memory" => integer 1914584
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3636
        "start_memory" => integer 1916864
        "stop_time" => float 1734916462.3645
        "stop_memory" => integer 1917416
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3646
        "start_memory" => integer 1919760
        "stop_time" => float 1734916462.3656
        "stop_memory" => integer 1920336
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3658
        "start_memory" => integer 1926776
        "stop_time" => float 1734916462.3667
        "stop_memory" => integer 1927328
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3667
        "start_memory" => integer 1929672
        "stop_time" => float 1734916462.3678
        "stop_memory" => integer 1931272
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3683
        "start_memory" => integer 1942360
        "stop_time" => float 1734916462.3691
        "stop_memory" => integer 1942928
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3692
        "start_memory" => integer 1945296
        "stop_time" => float 1734916462.3702
        "stop_memory" => integer 1945880
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3713
        "start_memory" => integer 1952232
        "stop_time" => float 1734916462.3722
        "stop_memory" => integer 1952776
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3722
        "start_memory" => integer 1955128
        "stop_time" => float 1734916462.3732
        "stop_memory" => integer 1955704
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3738
        "start_memory" => integer 1960592
        "stop_time" => float 1734916462.3748
        "stop_memory" => integer 1961176
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3748
        "start_memory" => integer 1963568
        "stop_time" => float 1734916462.3759
        "stop_memory" => integer 1964160
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3763
        "start_memory" => integer 1978760
        "stop_time" => float 1734916462.3773
        "stop_memory" => integer 1979328
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3774
        "start_memory" => integer 1981744
        "stop_time" => float 1734916462.3785
        "stop_memory" => integer 1982336
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3789
        "start_memory" => integer 1996616
        "stop_time" => float 1734916462.3799
        "stop_memory" => integer 1997184
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.38
        "start_memory" => integer 1999600
        "stop_time" => float 1734916462.3814
        "stop_memory" => integer 2000192
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.382
        "start_memory" => integer 2014448
        "stop_time" => float 1734916462.3835
        "stop_memory" => integer 2015016
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3836
        "start_memory" => integer 2017432
        "stop_time" => float 1734916462.3848
        "stop_memory" => integer 2018024
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3853
        "start_memory" => integer 2032296
        "stop_time" => float 1734916462.3864
        "stop_memory" => integer 2032864
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3864
        "start_memory" => integer 2035280
        "stop_time" => float 1734916462.3876
        "stop_memory" => integer 2035872
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.388
        "start_memory" => integer 2050128
        "stop_time" => float 1734916462.389
        "stop_memory" => integer 2050696
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3891
        "start_memory" => integer 2053112
        "stop_time" => float 1734916462.3903
        "stop_memory" => integer 2053704
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3906
        "start_memory" => integer 2067960
        "stop_time" => float 1734916462.3917
        "stop_memory" => integer 2068528
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3917
        "start_memory" => integer 2070944
        "stop_time" => float 1734916462.3929
        "stop_memory" => integer 2071536
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3933
        "start_memory" => integer 2085808
        "stop_time" => float 1734916462.3944
        "stop_memory" => integer 2086376
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3944
        "start_memory" => integer 2088792
        "stop_time" => float 1734916462.3956
        "stop_memory" => integer 2089384
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.396
        "start_memory" => integer 2103640
        "stop_time" => float 1734916462.3971
        "stop_memory" => integer 2104208
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3971
        "start_memory" => integer 2106624
        "stop_time" => float 1734916462.3983
        "stop_memory" => integer 2107216
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3986
        "start_memory" => integer 2121568
        "stop_time" => float 1734916462.3998
        "stop_memory" => integer 2122136
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.3999
        "start_memory" => integer 2124552
        "stop_time" => float 1734916462.4011
        "stop_memory" => integer 2125144
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4015
        "start_memory" => integer 2139400
        "stop_time" => float 1734916462.4026
        "stop_memory" => integer 2139968
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4026
        "start_memory" => integer 2142384
        "stop_time" => float 1734916462.4039
        "stop_memory" => integer 2142976
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4042
        "start_memory" => integer 2157232
        "stop_time" => float 1734916462.4054
        "stop_memory" => integer 2157800
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4054
        "start_memory" => integer 2160216
        "stop_time" => float 1734916462.4067
        "stop_memory" => integer 2160808
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4071
        "start_memory" => integer 2175048
        "stop_time" => float 1734916462.4083
        "stop_memory" => integer 2175616
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4083
        "start_memory" => integer 2178032
        "stop_time" => float 1734916462.4095
        "stop_memory" => integer 2178624
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4099
        "start_memory" => integer 2192880
        "stop_time" => float 1734916462.411
        "stop_memory" => integer 2193448
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.411
        "start_memory" => integer 2195864
        "stop_time" => float 1734916462.4122
        "stop_memory" => integer 2196456
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4126
        "start_memory" => integer 2210728
        "stop_time" => float 1734916462.4136
        "stop_memory" => integer 2211296
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4136
        "start_memory" => integer 2213712
        "stop_time" => float 1734916462.4149
        "stop_memory" => integer 2214304
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4152
        "start_memory" => integer 2228616
        "stop_time" => float 1734916462.4165
        "stop_memory" => integer 2229184
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4165
        "start_memory" => integer 2231600
        "stop_time" => float 1734916462.4177
        "stop_memory" => integer 2232192
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4181
        "start_memory" => integer 2246464
        "stop_time" => float 1734916462.4193
        "stop_memory" => integer 2247032
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4193
        "start_memory" => integer 2249448
        "stop_time" => float 1734916462.4206
        "stop_memory" => integer 2250040
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.421
        "start_memory" => integer 2264440
        "stop_time" => float 1734916462.4221
        "stop_memory" => integer 2265008
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4221
        "start_memory" => integer 2267424
        "stop_time" => float 1734916462.4234
        "stop_memory" => integer 2268016
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4238
        "start_memory" => integer 2282304
        "stop_time" => float 1734916462.4249
        "stop_memory" => integer 2282872
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4249
        "start_memory" => integer 2285288
        "stop_time" => float 1734916462.4261
        "stop_memory" => integer 2285880
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4264
        "start_memory" => integer 2300152
        "stop_time" => float 1734916462.4276
        "stop_memory" => integer 2300720
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4276
        "start_memory" => integer 2303136
        "stop_time" => float 1734916462.4288
        "stop_memory" => integer 2303728
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4292
        "start_memory" => integer 2318000
        "stop_time" => float 1734916462.4303
        "stop_memory" => integer 2318568
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4303
        "start_memory" => integer 2320984
        "stop_time" => float 1734916462.4315
        "stop_memory" => integer 2321576
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4319
        "start_memory" => integer 2335832
        "stop_time" => float 1734916462.433
        "stop_memory" => integer 2336400
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4331
        "start_memory" => integer 2338816
        "stop_time" => float 1734916462.4343
        "stop_memory" => integer 2339408
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4346
        "start_memory" => integer 2353664
        "stop_time" => float 1734916462.4357
        "stop_memory" => integer 2354232
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4358
        "start_memory" => integer 2356648
        "stop_time" => float 1734916462.4369
        "stop_memory" => integer 2357240
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4375
        "start_memory" => integer 2371512
        "stop_time" => float 1734916462.4386
        "stop_memory" => integer 2372080
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4386
        "start_memory" => integer 2374496
        "stop_time" => float 1734916462.4398
        "stop_memory" => integer 2375088
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4402
        "start_memory" => integer 2389344
        "stop_time" => float 1734916462.4414
        "stop_memory" => integer 2389912
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4414
        "start_memory" => integer 2392328
        "stop_time" => float 1734916462.4426
        "stop_memory" => integer 2392920
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4435
        "start_memory" => integer 2407416
        "stop_time" => float 1734916462.4446
        "stop_memory" => integer 2407984
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4447
        "start_memory" => integer 2410400
        "stop_time" => float 1734916462.4459
        "stop_memory" => integer 2410992
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4472
        "start_memory" => integer 2420112
        "stop_time" => float 1734916462.4479
        "stop_memory" => integer 2420664
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.448
        "start_memory" => integer 2423024
        "stop_time" => float 1734916462.449
        "stop_memory" => integer 2423608
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4494
        "start_memory" => integer 2447544
        "stop_time" => float 1734916462.4501
        "stop_memory" => integer 2448120
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4501
        "start_memory" => integer 2450496
        "stop_time" => float 1734916462.4508
        "stop_memory" => integer 2451088
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4513
        "start_memory" => integer 2478800
        "stop_time" => float 1734916462.4522
        "stop_memory" => integer 2479352
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4522
        "start_memory" => integer 2481752
        "stop_time" => float 1734916462.4532
        "stop_memory" => integer 2482336
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4542
        "start_memory" => integer 2491152
        "stop_time" => float 1734916462.4551
        "stop_memory" => integer 2491744
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4551
        "start_memory" => integer 2494152
        "stop_time" => float 1734916462.4562
        "stop_memory" => integer 2494752
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4564
        "start_memory" => integer 2506016
        "stop_time" => float 1734916462.4574
        "stop_memory" => integer 2506608
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4574
        "start_memory" => integer 2509040
        "stop_time" => float 1734916462.4585
        "stop_memory" => integer 2509632
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4591
        "start_memory" => integer 2522896
        "stop_time" => float 1734916462.46
        "stop_memory" => integer 2523472
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4601
        "start_memory" => integer 2525888
        "stop_time" => float 1734916462.4611
        "stop_memory" => integer 2526488
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.462
        "start_memory" => integer 2537168
        "stop_time" => float 1734916462.4623
        "stop_memory" => integer 2537760
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4641
        "start_memory" => integer 2547136
        "stop_time" => float 1734916462.4653
        "stop_memory" => integer 2547712
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4654
        "start_memory" => integer 2556056
        "stop_time" => float 1734916462.4672
        "stop_memory" => integer 2556640
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4682
        "start_memory" => integer 2565720
        "stop_time" => float 1734916462.4691
        "stop_memory" => integer 2566272
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4692
        "start_memory" => integer 2568656
        "stop_time" => float 1734916462.4703
        "stop_memory" => integer 2569240
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4706
        "start_memory" => integer 2572248
        "stop_time" => float 1734916462.4716
        "stop_memory" => integer 2572808
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4716
        "start_memory" => integer 2575192
        "stop_time" => float 1734916462.4727
        "stop_memory" => integer 2575776
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.473
        "start_memory" => integer 2578784
        "stop_time" => float 1734916462.474
        "stop_memory" => integer 2579344
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.474
        "start_memory" => integer 2581728
        "stop_time" => float 1734916462.4751
        "stop_memory" => integer 2582312
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4756
        "start_memory" => integer 2588728
        "stop_time" => float 1734916462.4765
        "stop_memory" => integer 2589288
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4765
        "start_memory" => integer 2591648
        "stop_time" => float 1734916462.4775
        "stop_memory" => integer 2592216
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4778
        "start_memory" => integer 2594144
        "stop_time" => float 1734916462.4786
        "stop_memory" => integer 2594728
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4787
        "start_memory" => integer 2598632
        "stop_time" => float 1734916462.4794
        "stop_memory" => integer 2599192
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4794
        "start_memory" => integer 2601568
        "stop_time" => float 1734916462.4802
        "stop_memory" => integer 2602152
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4806
        "start_memory" => integer 2685616
        "stop_time" => float 1734916462.4815
        "stop_memory" => integer 2686192
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4818
        "start_memory" => integer 2718688
        "stop_time" => float 1734916462.4828
        "stop_memory" => integer 2719280
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.483
        "start_memory" => integer 2747048
        "stop_time" => float 1734916462.4836
        "stop_memory" => integer 2747632
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4836
        "start_memory" => integer 2750032
        "stop_time" => float 1734916462.4842
        "stop_memory" => integer 2750632
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4845
        "start_memory" => integer 2753800
        "stop_time" => float 1734916462.4853
        "stop_memory" => integer 2754360
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4855
        "start_memory" => integer 2780400
        "stop_time" => float 1734916462.4863
        "stop_memory" => integer 2780976
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4866
        "start_memory" => integer 2809976
        "stop_time" => float 1734916462.4874
        "stop_memory" => integer 2810568
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4877
        "start_memory" => integer 2837248
        "stop_time" => float 1734916462.4886
        "stop_memory" => integer 2837784
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4886
        "start_memory" => integer 2840136
        "stop_time" => float 1734916462.4896
        "stop_memory" => integer 2840712
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4907
        "start_memory" => integer 2852592
        "stop_time" => float 1734916462.4916
        "stop_memory" => integer 2853208
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4916
        "start_memory" => integer 2855864
        "stop_time" => float 1734916462.4926
        "stop_memory" => integer 2856456
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4937
        "start_memory" => integer 2876008
        "stop_time" => float 1734916462.4948
        "stop_memory" => integer 2876584
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4948
        "start_memory" => integer 2879016
        "stop_time" => float 1734916462.4961
        "stop_memory" => integer 2879616
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4981
        "start_memory" => integer 2895872
        "stop_time" => float 1734916462.4989
        "stop_memory" => integer 2896416
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.4989
        "start_memory" => integer 2898784
        "stop_time" => float 1734916462.5001
        "stop_memory" => integer 2899368
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5005
        "start_memory" => integer 2903800
        "stop_time" => float 1734916462.5013
        "stop_memory" => integer 2904360
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5013
        "start_memory" => integer 2906720
        "stop_time" => float 1734916462.5023
        "stop_memory" => integer 2907304
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5026
        "start_memory" => integer 2926312
        "stop_time" => float 1734916462.5036
        "stop_memory" => integer 2926888
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5036
        "start_memory" => integer 2929280
        "stop_time" => float 1734916462.5048
        "stop_memory" => integer 2929872
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5052
        "start_memory" => integer 2948072
        "stop_time" => float 1734916462.5058
        "stop_memory" => integer 2948656
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5058
        "start_memory" => integer 2951064
        "stop_time" => float 1734916462.5064
        "stop_memory" => integer 2951664
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5069
        "start_memory" => integer 2974184
        "stop_time" => float 1734916462.508
        "stop_memory" => integer 2974744
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.508
        "start_memory" => integer 2977160
        "stop_time" => float 1734916462.5091
        "stop_memory" => integer 2977752
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5095
        "start_memory" => integer 2995896
        "stop_time" => float 1734916462.5103
        "stop_memory" => integer 2996432
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5103
        "start_memory" => integer 2998776
        "stop_time" => float 1734916462.5113
        "stop_memory" => integer 2999352
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5117
        "start_memory" => integer 3018520
        "stop_time" => float 1734916462.5126
        "stop_memory" => integer 3019088
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5126
        "start_memory" => integer 3021448
        "stop_time" => float 1734916462.5136
        "stop_memory" => integer 3022032
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5167
        "start_memory" => integer 3028440
        "stop_time" => float 1734916462.5177
        "stop_memory" => integer 3029000
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5177
        "start_memory" => integer 3031360
        "stop_time" => float 1734916462.5195
        "stop_memory" => integer 3031928
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.52
        "start_memory" => integer 3049368
        "stop_time" => float 1734916462.5216
        "stop_memory" => integer 3049936
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5217
        "start_memory" => integer 3052320
        "stop_time" => float 1734916462.5227
        "stop_memory" => integer 3052904
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5233
        "start_memory" => integer 3081552
        "stop_time" => float 1734916462.5244
        "stop_memory" => integer 3082128
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5244
        "start_memory" => integer 3084552
        "stop_time" => float 1734916462.5256
        "stop_memory" => integer 3085144
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5264
        "start_memory" => integer 3102400
        "stop_time" => float 1734916462.5273
        "stop_memory" => integer 3102984
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5276
        "start_memory" => integer 3068568
        "stop_time" => float 1734916462.5285
        "stop_memory" => integer 3070528
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5287
        "start_memory" => integer 3094736
        "stop_time" => float 1734916462.5296
        "stop_memory" => integer 3096400
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734916462.5296
        "start_memory" => integer 3095984
        "stop_time" => float 1734916462.5306
        "stop_memory" => integer 3097648
    )
)

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