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 1414678978.4736
        "start_memory" => integer 1989872
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4736
        "start_memory" => integer 1992216
        "stop_time" => float 1414678978.4737
        "stop_memory" => integer 1992808
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4738
        "start_memory" => integer 1997760
        "stop_time" => float 1414678978.4738
        "stop_memory" => integer 1998352
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4746
        "start_memory" => integer 2123920
        "stop_time" => float 1414678978.4747
        "stop_memory" => integer 2124472
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4749
        "start_memory" => integer 2129392
        "stop_time" => float 1414678978.4749
        "stop_memory" => integer 2129976
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4751
        "start_memory" => integer 2141064
        "stop_time" => float 1414678978.4752
        "stop_memory" => integer 2141608
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4753
        "start_memory" => integer 2146320
        "stop_time" => float 1414678978.4753
        "stop_memory" => integer 2146896
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4756
        "start_memory" => integer 2156152
        "stop_time" => float 1414678978.4756
        "stop_memory" => integer 2156712
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4758
        "start_memory" => integer 2161368
        "stop_time" => float 1414678978.4759
        "stop_memory" => integer 2161976
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4771
        "start_memory" => integer 2322744
        "stop_time" => float 1414678978.4772
        "stop_memory" => integer 2323304
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4774
        "start_memory" => integer 2328152
        "stop_time" => float 1414678978.4775
        "stop_memory" => integer 2328728
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4778
        "start_memory" => integer 2342200
        "stop_time" => float 1414678978.4778
        "stop_memory" => integer 2342752
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.478
        "start_memory" => integer 2347400
        "stop_time" => float 1414678978.4781
        "stop_memory" => integer 2347968
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4786
        "start_memory" => integer 2402760
        "stop_time" => float 1414678978.4787
        "stop_memory" => integer 2403352
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4787
        "start_memory" => integer 2404512
        "stop_time" => float 1414678978.4788
        "stop_memory" => integer 2405088
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4789
        "start_memory" => integer 2409960
        "stop_time" => float 1414678978.479
        "stop_memory" => integer 2410536
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4794
        "start_memory" => integer 2475944
        "stop_time" => float 1414678978.4795
        "stop_memory" => integer 2476560
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4795
        "start_memory" => integer 2477336
        "stop_time" => float 1414678978.4796
        "stop_memory" => integer 2477912
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4836
        "start_memory" => integer 3146616
        "stop_time" => float 1414678978.4838
        "stop_memory" => integer 3147144
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4839
        "start_memory" => integer 3152840
        "stop_time" => float 1414678978.484
        "stop_memory" => integer 3153408
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4844
        "start_memory" => integer 3186168
        "stop_time" => float 1414678978.4846
        "stop_memory" => integer 3186712
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4847
        "start_memory" => integer 3191352
        "stop_time" => float 1414678978.4848
        "stop_memory" => integer 3191920
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4859
        "start_memory" => integer 3353576
        "stop_time" => float 1414678978.486
        "stop_memory" => integer 3354152
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4861
        "start_memory" => integer 3359032
        "stop_time" => float 1414678978.4862
        "stop_memory" => integer 3359616
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4864
        "start_memory" => integer 3362304
        "stop_time" => float 1414678978.4865
        "stop_memory" => integer 3362864
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4866
        "start_memory" => integer 3367736
        "stop_time" => float 1414678978.4867
        "stop_memory" => integer 3368320
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.487
        "start_memory" => integer 3417984
        "stop_time" => float 1414678978.4871
        "stop_memory" => integer 3418528
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4873
        "start_memory" => integer 3423200
        "stop_time" => float 1414678978.4873
        "stop_memory" => integer 3423776
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.488
        "start_memory" => integer 3521840
        "stop_time" => float 1414678978.4881
        "stop_memory" => integer 3522376
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4882
        "start_memory" => integer 3527016
        "stop_time" => float 1414678978.4883
        "stop_memory" => integer 3527584
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.4901
        "start_memory" => integer 3612200
        "stop_time" => float 1414678978.4902
        "stop_memory" => integer 3612792
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5816
        "start_memory" => integer 3654944
        "stop_time" => float 1414678978.5817
        "stop_memory" => integer 3655504
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5819
        "start_memory" => integer 3660168
        "stop_time" => float 1414678978.582
        "stop_memory" => integer 3661000
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5833
        "start_memory" => integer 3701600
        "stop_time" => float 1414678978.5833
        "stop_memory" => integer 3702152
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5835
        "start_memory" => integer 3706984
        "stop_time" => float 1414678978.5835
        "stop_memory" => integer 3707560
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5846
        "start_memory" => integer 3731264
        "stop_time" => float 1414678978.5847
        "stop_memory" => integer 3731816
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5849
        "start_memory" => integer 3736496
        "stop_time" => float 1414678978.5849
        "stop_memory" => integer 3737072
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5863
        "start_memory" => integer 3804224
        "stop_time" => float 1414678978.5864
        "stop_memory" => integer 3804808
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5867
        "start_memory" => integer 3822800
        "stop_time" => float 1414678978.5868
        "stop_memory" => integer 3823360
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5869
        "start_memory" => integer 3828224
        "stop_time" => float 1414678978.587
        "stop_memory" => integer 3828808
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5879
        "start_memory" => integer 3893952
        "stop_time" => float 1414678978.588
        "stop_memory" => integer 3894528
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5884
        "start_memory" => integer 3913952
        "stop_time" => float 1414678978.5885
        "stop_memory" => integer 3914528
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5891
        "start_memory" => integer 3962600
        "stop_time" => float 1414678978.5891
        "stop_memory" => integer 3963176
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5895
        "start_memory" => integer 3973840
        "stop_time" => float 1414678978.5896
        "stop_memory" => integer 3974416
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.59
        "start_memory" => integer 3992424
        "stop_time" => float 1414678978.59
        "stop_memory" => integer 3993000
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5903
        "start_memory" => integer 4002696
        "stop_time" => float 1414678978.5903
        "stop_memory" => integer 4003272
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5907
        "start_memory" => integer 4023376
        "stop_time" => float 1414678978.5908
        "stop_memory" => integer 4023952
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5911
        "start_memory" => integer 4044432
        "stop_time" => float 1414678978.5911
        "stop_memory" => integer 4045024
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5915
        "start_memory" => integer 4058264
        "stop_time" => float 1414678978.5916
        "stop_memory" => integer 4058832
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5919
        "start_memory" => integer 4071056
        "stop_time" => float 1414678978.5919
        "stop_memory" => integer 4071632
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5924
        "start_memory" => integer 4119920
        "stop_time" => float 1414678978.5925
        "stop_memory" => integer 4120480
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5931
        "start_memory" => integer 4158952
        "stop_time" => float 1414678978.5931
        "stop_memory" => integer 4159536
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5936
        "start_memory" => integer 4178936
        "stop_time" => float 1414678978.5936
        "stop_memory" => integer 4179512
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.594
        "start_memory" => integer 4210672
        "stop_time" => float 1414678978.5941
        "stop_memory" => integer 4211248
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5945
        "start_memory" => integer 4229960
        "stop_time" => float 1414678978.5946
        "stop_memory" => integer 4230504
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5947
        "start_memory" => integer 4235176
        "stop_time" => float 1414678978.5948
        "stop_memory" => integer 4235752
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.5958
        "start_memory" => integer 4266616
        "stop_time" => float 1414678978.5959
        "stop_memory" => integer 4267152
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.596
        "start_memory" => integer 4271816
        "stop_time" => float 1414678978.5961
        "stop_memory" => integer 4272384
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6007
        "start_memory" => integer 4413952
        "stop_time" => float 1414678978.6009
        "stop_memory" => integer 4414528
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6135
        "start_memory" => integer 4467328
        "stop_time" => float 1414678978.6136
        "stop_memory" => integer 4467880
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6138
        "start_memory" => integer 4472712
        "stop_time" => float 1414678978.6138
        "stop_memory" => integer 4473288
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6212
        "start_memory" => integer 4498768
        "stop_time" => float 1414678978.6213
        "stop_memory" => integer 4499352
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6215
        "start_memory" => integer 4504288
        "stop_time" => float 1414678978.6216
        "stop_memory" => integer 4504864
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6297
        "start_memory" => integer 4530456
        "stop_time" => float 1414678978.6298
        "stop_memory" => integer 4531016
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.63
        "start_memory" => integer 4535872
        "stop_time" => float 1414678978.6301
        "stop_memory" => integer 4536952
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6312
        "start_memory" => integer 4625688
        "stop_time" => float 1414678978.6312
        "stop_memory" => integer 4626272
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6395
        "start_memory" => integer 4633192
        "stop_time" => float 1414678978.6396
        "stop_memory" => integer 4633744
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6399
        "start_memory" => integer 4638624
        "stop_time" => float 1414678978.6399
        "stop_memory" => integer 4639208
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6656
        "start_memory" => integer 4696088
        "stop_time" => float 1414678978.6656
        "stop_memory" => integer 4696648
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6658
        "start_memory" => integer 4701568
        "stop_time" => float 1414678978.6659
        "stop_memory" => integer 4702152
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6662
        "start_memory" => integer 4725984
        "stop_time" => float 1414678978.6662
        "stop_memory" => integer 4726560
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6676
        "start_memory" => integer 4735640
        "stop_time" => float 1414678978.6677
        "stop_memory" => integer 4736200
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6679
        "start_memory" => integer 4741064
        "stop_time" => float 1414678978.6679
        "stop_memory" => integer 4741648
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6696
        "start_memory" => integer 4821120
        "stop_time" => float 1414678978.6697
        "stop_memory" => integer 4821680
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6698
        "start_memory" => integer 4826560
        "stop_time" => float 1414678978.6699
        "stop_memory" => integer 4827144
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6792
        "start_memory" => integer 4852872
        "stop_time" => float 1414678978.6793
        "stop_memory" => integer 4853432
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6795
        "start_memory" => integer 4858296
        "stop_time" => float 1414678978.6796
        "stop_memory" => integer 4858880
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.681
        "start_memory" => integer 4880248
        "stop_time" => float 1414678978.6811
        "stop_memory" => integer 4880776
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6812
        "start_memory" => integer 4885424
        "stop_time" => float 1414678978.6813
        "stop_memory" => integer 4886000
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6836
        "start_memory" => integer 4896856
        "stop_time" => float 1414678978.6836
        "stop_memory" => integer 4897448
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6837
        "start_memory" => integer 4902336
        "stop_time" => float 1414678978.6838
        "stop_memory" => integer 4902912
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6894
        "start_memory" => integer 4947864
        "stop_time" => float 1414678978.6895
        "stop_memory" => integer 4948440
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6905
        "start_memory" => integer 4959608
        "stop_time" => float 1414678978.6906
        "stop_memory" => integer 4960152
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6907
        "start_memory" => integer 4965008
        "stop_time" => float 1414678978.6908
        "stop_memory" => integer 4965584
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6961
        "start_memory" => integer 4988080
        "stop_time" => float 1414678978.6962
        "stop_memory" => integer 4988664
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6991
        "start_memory" => integer 4994216
        "stop_time" => float 1414678978.6992
        "stop_memory" => integer 4994784
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.6994
        "start_memory" => integer 4999632
        "stop_time" => float 1414678978.6994
        "stop_memory" => integer 5000216
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.703
        "start_memory" => integer 5133976
        "stop_time" => float 1414678978.7031
        "stop_memory" => integer 5134552
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7038
        "start_memory" => integer 5139504
        "stop_time" => float 1414678978.7039
        "stop_memory" => integer 5140096
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7047
        "start_memory" => integer 5154968
        "stop_time" => float 1414678978.7048
        "stop_memory" => integer 5155536
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7049
        "start_memory" => integer 5160496
        "stop_time" => float 1414678978.7049
        "stop_memory" => integer 5161088
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7074
        "start_memory" => integer 5167032
        "stop_time" => float 1414678978.7074
        "stop_memory" => integer 5167584
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7076
        "start_memory" => integer 5172448
        "stop_time" => float 1414678978.7076
        "stop_memory" => integer 5173032
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7097
        "start_memory" => integer 5317672
        "stop_time" => float 1414678978.7097
        "stop_memory" => integer 5318248
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7099
        "start_memory" => integer 5323208
        "stop_time" => float 1414678978.7099
        "stop_memory" => integer 5323800
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7102
        "start_memory" => integer 5344480
        "stop_time" => float 1414678978.7103
        "stop_memory" => integer 5345048
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7104
        "start_memory" => integer 5349936
        "stop_time" => float 1414678978.7105
        "stop_memory" => integer 5350512
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7122
        "start_memory" => integer 5412816
        "stop_time" => float 1414678978.7122
        "stop_memory" => integer 5413376
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7124
        "start_memory" => integer 5418248
        "stop_time" => float 1414678978.7125
        "stop_memory" => integer 5418832
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7138
        "start_memory" => integer 5484336
        "stop_time" => float 1414678978.7139
        "stop_memory" => integer 5484896
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.714
        "start_memory" => integer 5489760
        "stop_time" => float 1414678978.7141
        "stop_memory" => integer 5490344
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7157
        "start_memory" => integer 5533000
        "stop_time" => float 1414678978.7158
        "stop_memory" => integer 5533576
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.716
        "start_memory" => integer 5538544
        "stop_time" => float 1414678978.716
        "stop_memory" => integer 5539136
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7177
        "start_memory" => integer 5597976
        "stop_time" => float 1414678978.7178
        "stop_memory" => integer 5598560
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7179
        "start_memory" => integer 5603624
        "stop_time" => float 1414678978.718
        "stop_memory" => integer 5604224
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7183
        "start_memory" => integer 5623896
        "stop_time" => float 1414678978.7184
        "stop_memory" => integer 5624472
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7185
        "start_memory" => integer 5629536
        "stop_time" => float 1414678978.7186
        "stop_memory" => integer 5630136
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7201
        "start_memory" => integer 5694576
        "stop_time" => float 1414678978.7202
        "stop_memory" => integer 5695152
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7204
        "start_memory" => integer 5700216
        "stop_time" => float 1414678978.7204
        "stop_memory" => integer 5700816
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.722
        "start_memory" => integer 5749144
        "stop_time" => float 1414678978.722
        "stop_memory" => integer 5749720
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7222
        "start_memory" => integer 5754776
        "stop_time" => float 1414678978.7223
        "stop_memory" => integer 5755376
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.724
        "start_memory" => integer 5796680
        "stop_time" => float 1414678978.724
        "stop_memory" => integer 5797256
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7242
        "start_memory" => integer 5802320
        "stop_time" => float 1414678978.7242
        "stop_memory" => integer 5802920
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7263
        "start_memory" => integer 5915848
        "stop_time" => float 1414678978.7264
        "stop_memory" => integer 5916424
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7266
        "start_memory" => integer 5921488
        "stop_time" => float 1414678978.7267
        "stop_memory" => integer 5922088
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7302
        "start_memory" => integer 5970728
        "stop_time" => float 1414678978.7303
        "stop_memory" => integer 5971288
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7305
        "start_memory" => integer 5976256
        "stop_time" => float 1414678978.7306
        "stop_memory" => integer 5976848
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.732
        "start_memory" => integer 5999968
        "stop_time" => float 1414678978.7321
        "stop_memory" => integer 6000488
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7323
        "start_memory" => integer 6005128
        "stop_time" => float 1414678978.7324
        "stop_memory" => integer 6005696
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7342
        "start_memory" => integer 6120368
        "stop_time" => float 1414678978.7342
        "stop_memory" => integer 6120928
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7344
        "start_memory" => integer 6125600
        "stop_time" => float 1414678978.7345
        "stop_memory" => integer 6126192
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.741
        "start_memory" => integer 6146512
        "stop_time" => float 1414678978.7411
        "stop_memory" => integer 6147048
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7413
        "start_memory" => integer 6151696
        "stop_time" => float 1414678978.7414
        "stop_memory" => integer 6152264
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7451
        "start_memory" => integer 6188944
        "stop_time" => float 1414678978.7452
        "stop_memory" => integer 6189488
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7454
        "start_memory" => integer 6194128
        "stop_time" => float 1414678978.7455
        "stop_memory" => integer 6194696
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7465
        "start_memory" => integer 6237104
        "stop_time" => float 1414678978.7467
        "stop_memory" => integer 6237648
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7468
        "start_memory" => integer 6242312
        "stop_time" => float 1414678978.7468
        "stop_memory" => integer 6242880
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7478
        "start_memory" => integer 6287048
        "stop_time" => float 1414678978.7479
        "stop_memory" => integer 6287592
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.748
        "start_memory" => integer 6292232
        "stop_time" => float 1414678978.7482
        "stop_memory" => integer 6293824
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7498
        "start_memory" => integer 6369360
        "stop_time" => float 1414678978.7499
        "stop_memory" => integer 6369904
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.75
        "start_memory" => integer 6374560
        "stop_time" => float 1414678978.7501
        "stop_memory" => integer 6375128
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7528
        "start_memory" => integer 6397312
        "stop_time" => float 1414678978.7529
        "stop_memory" => integer 6397872
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.753
        "start_memory" => integer 6402512
        "stop_time" => float 1414678978.753
        "stop_memory" => integer 6403080
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7551
        "start_memory" => integer 6432232
        "stop_time" => float 1414678978.7552
        "stop_memory" => integer 6432792
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7552
        "start_memory" => integer 6437640
        "stop_time" => float 1414678978.7553
        "stop_memory" => integer 6438216
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7563
        "start_memory" => integer 6458528
        "stop_time" => float 1414678978.7564
        "stop_memory" => integer 6459096
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7565
        "start_memory" => integer 6464032
        "stop_time" => float 1414678978.7566
        "stop_memory" => integer 6464616
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7577
        "start_memory" => integer 6479664
        "stop_time" => float 1414678978.7577
        "stop_memory" => integer 6480224
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7578
        "start_memory" => integer 6485160
        "stop_time" => float 1414678978.7579
        "stop_memory" => integer 6485744
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7588
        "start_memory" => integer 6500784
        "stop_time" => float 1414678978.7589
        "stop_memory" => integer 6501344
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7591
        "start_memory" => integer 6506280
        "stop_time" => float 1414678978.7591
        "stop_memory" => integer 6506864
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7602
        "start_memory" => integer 6521912
        "stop_time" => float 1414678978.7604
        "stop_memory" => integer 6522472
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7605
        "start_memory" => integer 6527408
        "stop_time" => float 1414678978.7606
        "stop_memory" => integer 6527992
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7617
        "start_memory" => integer 6543016
        "stop_time" => float 1414678978.7618
        "stop_memory" => integer 6543576
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7619
        "start_memory" => integer 6548512
        "stop_time" => float 1414678978.762
        "stop_memory" => integer 6549096
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7629
        "start_memory" => integer 6564120
        "stop_time" => float 1414678978.763
        "stop_memory" => integer 6564680
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7631
        "start_memory" => integer 6569616
        "stop_time" => float 1414678978.7632
        "stop_memory" => integer 6570200
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7642
        "start_memory" => integer 6585256
        "stop_time" => float 1414678978.7642
        "stop_memory" => integer 6585816
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7644
        "start_memory" => integer 6590752
        "stop_time" => float 1414678978.7645
        "stop_memory" => integer 6591336
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7656
        "start_memory" => integer 6606360
        "stop_time" => float 1414678978.7657
        "stop_memory" => integer 6606920
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7659
        "start_memory" => integer 6611856
        "stop_time" => float 1414678978.7659
        "stop_memory" => integer 6612440
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.767
        "start_memory" => integer 6627576
        "stop_time" => float 1414678978.7671
        "stop_memory" => integer 6628136
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7674
        "start_memory" => integer 6633072
        "stop_time" => float 1414678978.7675
        "stop_memory" => integer 6633656
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7685
        "start_memory" => integer 6648688
        "stop_time" => float 1414678978.7685
        "stop_memory" => integer 6649248
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7687
        "start_memory" => integer 6654184
        "stop_time" => float 1414678978.7688
        "stop_memory" => integer 6654768
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.77
        "start_memory" => integer 6669808
        "stop_time" => float 1414678978.7701
        "stop_memory" => integer 6670368
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7703
        "start_memory" => integer 6675304
        "stop_time" => float 1414678978.7704
        "stop_memory" => integer 6675888
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7714
        "start_memory" => integer 6690896
        "stop_time" => float 1414678978.7714
        "stop_memory" => integer 6691456
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7715
        "start_memory" => integer 6696392
        "stop_time" => float 1414678978.7717
        "stop_memory" => integer 6696976
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7726
        "start_memory" => integer 6712000
        "stop_time" => float 1414678978.7727
        "stop_memory" => integer 6712560
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7729
        "start_memory" => integer 6717496
        "stop_time" => float 1414678978.7729
        "stop_memory" => integer 6718080
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7739
        "start_memory" => integer 6733104
        "stop_time" => float 1414678978.774
        "stop_memory" => integer 6733664
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7741
        "start_memory" => integer 6738600
        "stop_time" => float 1414678978.7743
        "stop_memory" => integer 6739184
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7753
        "start_memory" => integer 6754256
        "stop_time" => float 1414678978.7754
        "stop_memory" => integer 6754816
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7755
        "start_memory" => integer 6759752
        "stop_time" => float 1414678978.7756
        "stop_memory" => integer 6760336
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7766
        "start_memory" => integer 6775392
        "stop_time" => float 1414678978.7767
        "stop_memory" => integer 6775952
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7769
        "start_memory" => integer 6780888
        "stop_time" => float 1414678978.777
        "stop_memory" => integer 6781472
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.778
        "start_memory" => integer 6796648
        "stop_time" => float 1414678978.7781
        "stop_memory" => integer 6797208
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7783
        "start_memory" => integer 6802144
        "stop_time" => float 1414678978.7784
        "stop_memory" => integer 6802728
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7793
        "start_memory" => integer 6817784
        "stop_time" => float 1414678978.7794
        "stop_memory" => integer 6818344
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7795
        "start_memory" => integer 6823280
        "stop_time" => float 1414678978.7796
        "stop_memory" => integer 6823864
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7807
        "start_memory" => integer 6838920
        "stop_time" => float 1414678978.7807
        "stop_memory" => integer 6839480
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7809
        "start_memory" => integer 6844416
        "stop_time" => float 1414678978.781
        "stop_memory" => integer 6845000
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7821
        "start_memory" => integer 6860048
        "stop_time" => float 1414678978.7822
        "stop_memory" => integer 6860608
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7823
        "start_memory" => integer 6865544
        "stop_time" => float 1414678978.7825
        "stop_memory" => integer 6866128
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7835
        "start_memory" => integer 6881152
        "stop_time" => float 1414678978.7836
        "stop_memory" => integer 6881712
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7837
        "start_memory" => integer 6886648
        "stop_time" => float 1414678978.7838
        "stop_memory" => integer 6887232
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7846
        "start_memory" => integer 6902256
        "stop_time" => float 1414678978.7847
        "stop_memory" => integer 6902816
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7848
        "start_memory" => integer 6907752
        "stop_time" => float 1414678978.7849
        "stop_memory" => integer 6908336
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7858
        "start_memory" => integer 6923392
        "stop_time" => float 1414678978.7859
        "stop_memory" => integer 6923952
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.786
        "start_memory" => integer 6928888
        "stop_time" => float 1414678978.7861
        "stop_memory" => integer 6929472
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7871
        "start_memory" => integer 6944512
        "stop_time" => float 1414678978.7872
        "stop_memory" => integer 6945072
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7874
        "start_memory" => integer 6950008
        "stop_time" => float 1414678978.7875
        "stop_memory" => integer 6950592
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7896
        "start_memory" => integer 6965856
        "stop_time" => float 1414678978.7896
        "stop_memory" => integer 6966416
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7898
        "start_memory" => integer 6971328
        "stop_time" => float 1414678978.7898
        "stop_memory" => integer 6971896
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7935
        "start_memory" => integer 7009944
        "stop_time" => float 1414678978.7936
        "stop_memory" => integer 7010496
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7938
        "start_memory" => integer 7015184
        "stop_time" => float 1414678978.7939
        "stop_memory" => integer 7015760
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7959
        "start_memory" => integer 7146824
        "stop_time" => float 1414678978.7959
        "stop_memory" => integer 7147376
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.796
        "start_memory" => integer 7152056
        "stop_time" => float 1414678978.7961
        "stop_memory" => integer 7152632
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7986
        "start_memory" => integer 7321832
        "stop_time" => float 1414678978.7987
        "stop_memory" => integer 7322384
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.7988
        "start_memory" => integer 7327072
        "stop_time" => float 1414678978.7989
        "stop_memory" => integer 7327632
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8022
        "start_memory" => integer 7383296
        "stop_time" => float 1414678978.8024
        "stop_memory" => integer 7383872
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8025
        "start_memory" => integer 7388784
        "stop_time" => float 1414678978.8026
        "stop_memory" => integer 7389352
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8036
        "start_memory" => integer 7429384
        "stop_time" => float 1414678978.8037
        "stop_memory" => integer 7429960
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8038
        "start_memory" => integer 7434912
        "stop_time" => float 1414678978.8039
        "stop_memory" => integer 7435504
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8058
        "start_memory" => integer 7461448
        "stop_time" => float 1414678978.8059
        "stop_memory" => integer 7462016
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.806
        "start_memory" => integer 7466888
        "stop_time" => float 1414678978.8061
        "stop_memory" => integer 7467464
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.809
        "start_memory" => integer 7493520
        "stop_time" => float 1414678978.8091
        "stop_memory" => integer 7494096
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8134
        "start_memory" => integer 7505000
        "stop_time" => float 1414678978.8136
        "stop_memory" => integer 7505560
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8139
        "start_memory" => integer 7515448
        "stop_time" => float 1414678978.814
        "stop_memory" => integer 7516016
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8162
        "start_memory" => integer 7526664
        "stop_time" => float 1414678978.8163
        "stop_memory" => integer 7527216
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8165
        "start_memory" => integer 7531928
        "stop_time" => float 1414678978.8165
        "stop_memory" => integer 7532504
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8175
        "start_memory" => integer 7537968
        "stop_time" => float 1414678978.8176
        "stop_memory" => integer 7538520
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8178
        "start_memory" => integer 7543248
        "stop_time" => float 1414678978.8179
        "stop_memory" => integer 7543824
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8188
        "start_memory" => integer 7549272
        "stop_time" => float 1414678978.8188
        "stop_memory" => integer 7549824
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.819
        "start_memory" => integer 7554576
        "stop_time" => float 1414678978.819
        "stop_memory" => integer 7555152
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8208
        "start_memory" => integer 7567160
        "stop_time" => float 1414678978.8208
        "stop_memory" => integer 7567696
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.821
        "start_memory" => integer 7572344
        "stop_time" => float 1414678978.821
        "stop_memory" => integer 7572912
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8218
        "start_memory" => integer 7575976
        "stop_time" => float 1414678978.8219
        "stop_memory" => integer 7576552
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8221
        "start_memory" => integer 7585840
        "stop_time" => float 1414678978.8222
        "stop_memory" => integer 7586376
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8224
        "start_memory" => integer 7591024
        "stop_time" => float 1414678978.8224
        "stop_memory" => integer 7591592
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8259
        "start_memory" => integer 7966992
        "stop_time" => float 1414678978.826
        "stop_memory" => integer 7967568
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8274
        "start_memory" => integer 8046144
        "stop_time" => float 1414678978.8275
        "stop_memory" => integer 8046728
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8284
        "start_memory" => integer 8091952
        "stop_time" => float 1414678978.8285
        "stop_memory" => integer 8092512
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8286
        "start_memory" => integer 8097376
        "stop_time" => float 1414678978.8287
        "stop_memory" => integer 8097960
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8295
        "start_memory" => integer 8106936
        "stop_time" => float 1414678978.8295
        "stop_memory" => integer 8107480
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8303
        "start_memory" => integer 8138920
        "stop_time" => float 1414678978.8304
        "stop_memory" => integer 8139480
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8311
        "start_memory" => integer 8173888
        "stop_time" => float 1414678978.8312
        "stop_memory" => integer 8174464
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.832
        "start_memory" => integer 8206576
        "stop_time" => float 1414678978.8321
        "stop_memory" => integer 8207112
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8322
        "start_memory" => integer 8211768
        "stop_time" => float 1414678978.8323
        "stop_memory" => integer 8212336
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8355
        "start_memory" => integer 8254144
        "stop_time" => float 1414678978.8356
        "stop_memory" => integer 8254736
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8358
        "start_memory" => integer 8259920
        "stop_time" => float 1414678978.8358
        "stop_memory" => integer 8260512
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.84
        "start_memory" => integer 8304640
        "stop_time" => float 1414678978.8402
        "stop_memory" => integer 8305192
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8404
        "start_memory" => integer 8310128
        "stop_time" => float 1414678978.8405
        "stop_memory" => integer 8310712
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8467
        "start_memory" => integer 8412400
        "stop_time" => float 1414678978.8468
        "stop_memory" => integer 8412928
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.847
        "start_memory" => integer 8417584
        "stop_time" => float 1414678978.8471
        "stop_memory" => integer 8418152
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8481
        "start_memory" => integer 8433080
        "stop_time" => float 1414678978.8481
        "stop_memory" => integer 8433632
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8482
        "start_memory" => integer 8438280
        "stop_time" => float 1414678978.8483
        "stop_memory" => integer 8438848
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8496
        "start_memory" => integer 8505280
        "stop_time" => float 1414678978.8497
        "stop_memory" => integer 8505840
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8498
        "start_memory" => integer 8510696
        "stop_time" => float 1414678978.8498
        "stop_memory" => integer 8511272
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8507
        "start_memory" => integer 8534712
        "stop_time" => float 1414678978.8507
        "stop_memory" => integer 8535320
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8509
        "start_memory" => integer 8540240
        "stop_time" => float 1414678978.851
        "stop_memory" => integer 8540832
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8529
        "start_memory" => integer 8611792
        "stop_time" => float 1414678978.853
        "stop_memory" => integer 8612328
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8532
        "start_memory" => integer 8617200
        "stop_time" => float 1414678978.8534
        "stop_memory" => integer 8617752
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8545
        "start_memory" => integer 8645456
        "stop_time" => float 1414678978.8546
        "stop_memory" => integer 8645992
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8547
        "start_memory" => integer 8650648
        "stop_time" => float 1414678978.8548
        "stop_memory" => integer 8651216
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8567
        "start_memory" => integer 8772440
        "stop_time" => float 1414678978.8568
        "stop_memory" => integer 8772984
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.857
        "start_memory" => integer 8777656
        "stop_time" => float 1414678978.857
        "stop_memory" => integer 8778224
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8642
        "start_memory" => integer 8809608
        "stop_time" => float 1414678978.8643
        "stop_memory" => integer 8810152
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8644
        "start_memory" => integer 8814800
        "stop_time" => float 1414678978.8645
        "stop_memory" => integer 8815368
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8661
        "start_memory" => integer 8915656
        "stop_time" => float 1414678978.8662
        "stop_memory" => integer 8916216
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8663
        "start_memory" => integer 8920928
        "stop_time" => float 1414678978.8664
        "stop_memory" => integer 8921504
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8678
        "start_memory" => integer 9029248
        "stop_time" => float 1414678978.8679
        "stop_memory" => integer 9029816
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.868
        "start_memory" => integer 9034736
        "stop_time" => float 1414678978.8681
        "stop_memory" => integer 9035320
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8695
        "start_memory" => integer 9056504
        "stop_time" => float 1414678978.8696
        "stop_memory" => integer 9057080
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8701
        "start_memory" => integer 9021560
        "stop_time" => float 1414678978.8702
        "stop_memory" => integer 9023496
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8712
        "start_memory" => integer 9094216
        "stop_time" => float 1414678978.8713
        "stop_memory" => integer 9095944
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414678978.8713
        "start_memory" => integer 9095704
        "stop_time" => float 1414678978.8714
        "stop_memory" => integer 9097432
    )
)

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