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(249) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(27) ""guide/api/Kohana_Profiler""
        "start_time" => float 1406608605.85
        "start_memory" => integer 1985056
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.85
        "start_memory" => integer 1987392
        "stop_time" => float 1406608605.8501
        "stop_memory" => integer 1987984
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8501
        "start_memory" => integer 1992936
        "stop_time" => float 1406608605.8502
        "stop_memory" => integer 1993528
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8508
        "start_memory" => integer 2119048
        "stop_time" => float 1406608605.8509
        "stop_memory" => integer 2119600
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.851
        "start_memory" => integer 2124536
        "stop_time" => float 1406608605.851
        "stop_memory" => integer 2125120
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8512
        "start_memory" => integer 2136208
        "stop_time" => float 1406608605.8512
        "stop_memory" => integer 2136752
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8514
        "start_memory" => integer 2141464
        "stop_time" => float 1406608605.8514
        "stop_memory" => integer 2142040
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8516
        "start_memory" => integer 2151296
        "stop_time" => float 1406608605.8516
        "stop_memory" => integer 2151832
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8517
        "start_memory" => integer 2156512
        "stop_time" => float 1406608605.8517
        "stop_memory" => integer 2157144
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8527
        "start_memory" => integer 2318080
        "stop_time" => float 1406608605.8527
        "stop_memory" => integer 2318640
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8528
        "start_memory" => integer 2323488
        "stop_time" => float 1406608605.8528
        "stop_memory" => integer 2324064
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.853
        "start_memory" => integer 2337512
        "stop_time" => float 1406608605.8531
        "stop_memory" => integer 2338056
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8531
        "start_memory" => integer 2342704
        "stop_time" => float 1406608605.8532
        "stop_memory" => integer 2343272
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8536
        "start_memory" => integer 2398056
        "stop_time" => float 1406608605.8536
        "stop_memory" => integer 2398648
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8537
        "start_memory" => integer 2399808
        "stop_time" => float 1406608605.8537
        "stop_memory" => integer 2400384
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8538
        "start_memory" => integer 2405264
        "stop_time" => float 1406608605.8539
        "stop_memory" => integer 2405840
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8543
        "start_memory" => integer 2471304
        "stop_time" => float 1406608605.8543
        "stop_memory" => integer 2471920
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8543
        "start_memory" => integer 2472704
        "stop_time" => float 1406608605.8544
        "stop_memory" => integer 2473280
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8577
        "start_memory" => integer 3141928
        "stop_time" => float 1406608605.8578
        "stop_memory" => integer 3142480
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8579
        "start_memory" => integer 3148128
        "stop_time" => float 1406608605.858
        "stop_memory" => integer 3148696
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8583
        "start_memory" => integer 3181440
        "stop_time" => float 1406608605.8584
        "stop_memory" => integer 3181984
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8585
        "start_memory" => integer 3186624
        "stop_time" => float 1406608605.8585
        "stop_memory" => integer 3187192
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8596
        "start_memory" => integer 3350032
        "stop_time" => float 1406608605.8597
        "stop_memory" => integer 3350608
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8598
        "start_memory" => integer 3355488
        "stop_time" => float 1406608605.8598
        "stop_memory" => integer 3356072
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8599
        "start_memory" => integer 3358760
        "stop_time" => float 1406608605.86
        "stop_memory" => integer 3359320
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8601
        "start_memory" => integer 3364192
        "stop_time" => float 1406608605.8601
        "stop_memory" => integer 3364776
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8607
        "start_memory" => integer 3414432
        "stop_time" => float 1406608605.861
        "stop_memory" => integer 3414976
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8612
        "start_memory" => integer 3419648
        "stop_time" => float 1406608605.8613
        "stop_memory" => integer 3420224
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8622
        "start_memory" => integer 3517816
        "stop_time" => float 1406608605.8623
        "stop_memory" => integer 3518352
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8624
        "start_memory" => integer 3522992
        "stop_time" => float 1406608605.8624
        "stop_memory" => integer 3523560
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.8663
        "start_memory" => integer 3610624
        "stop_time" => float 1406608605.8663
        "stop_memory" => integer 3611216
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9176
        "start_memory" => integer 3653368
        "stop_time" => float 1406608605.9176
        "stop_memory" => integer 3653936
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9177
        "start_memory" => integer 3658600
        "stop_time" => float 1406608605.9178
        "stop_memory" => integer 3659432
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9186
        "start_memory" => integer 3700048
        "stop_time" => float 1406608605.9186
        "stop_memory" => integer 3700600
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9187
        "start_memory" => integer 3705440
        "stop_time" => float 1406608605.9187
        "stop_memory" => integer 3706016
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9194
        "start_memory" => integer 3729712
        "stop_time" => float 1406608605.9195
        "stop_memory" => integer 3730264
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9196
        "start_memory" => integer 3734952
        "stop_time" => float 1406608605.9196
        "stop_memory" => integer 3735528
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9203
        "start_memory" => integer 3802680
        "stop_time" => float 1406608605.9204
        "stop_memory" => integer 3803264
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9205
        "start_memory" => integer 3821280
        "stop_time" => float 1406608605.9205
        "stop_memory" => integer 3821840
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9206
        "start_memory" => integer 3826704
        "stop_time" => float 1406608605.9206
        "stop_memory" => integer 3827288
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9214
        "start_memory" => integer 3892424
        "stop_time" => float 1406608605.9214
        "stop_memory" => integer 3893000
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9216
        "start_memory" => integer 3912424
        "stop_time" => float 1406608605.9217
        "stop_memory" => integer 3913000
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.922
        "start_memory" => integer 3961048
        "stop_time" => float 1406608605.922
        "stop_memory" => integer 3961624
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9223
        "start_memory" => integer 3972304
        "stop_time" => float 1406608605.9223
        "stop_memory" => integer 3972880
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9225
        "start_memory" => integer 3990888
        "stop_time" => float 1406608605.9226
        "stop_memory" => integer 3991464
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9228
        "start_memory" => integer 4001144
        "stop_time" => float 1406608605.9228
        "stop_memory" => integer 4001720
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.923
        "start_memory" => integer 4021848
        "stop_time" => float 1406608605.923
        "stop_memory" => integer 4022424
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9233
        "start_memory" => integer 4042928
        "stop_time" => float 1406608605.9233
        "stop_memory" => integer 4043520
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9235
        "start_memory" => integer 4056744
        "stop_time" => float 1406608605.9235
        "stop_memory" => integer 4057312
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9237
        "start_memory" => integer 4069520
        "stop_time" => float 1406608605.9238
        "stop_memory" => integer 4070096
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.924
        "start_memory" => integer 4118376
        "stop_time" => float 1406608605.924
        "stop_memory" => integer 4118936
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9244
        "start_memory" => integer 4157408
        "stop_time" => float 1406608605.9244
        "stop_memory" => integer 4157992
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9246
        "start_memory" => integer 4177392
        "stop_time" => float 1406608605.9246
        "stop_memory" => integer 4177968
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.925
        "start_memory" => integer 4209128
        "stop_time" => float 1406608605.925
        "stop_memory" => integer 4209704
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9253
        "start_memory" => integer 4228416
        "stop_time" => float 1406608605.9254
        "stop_memory" => integer 4228960
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9254
        "start_memory" => integer 4233632
        "stop_time" => float 1406608605.9255
        "stop_memory" => integer 4234208
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9256
        "start_memory" => integer 4265056
        "stop_time" => float 1406608605.9257
        "stop_memory" => integer 4265592
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9257
        "start_memory" => integer 4270240
        "stop_time" => float 1406608605.9258
        "stop_memory" => integer 4270808
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.928
        "start_memory" => integer 4412376
        "stop_time" => float 1406608605.9281
        "stop_memory" => integer 4412952
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9356
        "start_memory" => integer 4465760
        "stop_time" => float 1406608605.9356
        "stop_memory" => integer 4466312
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9357
        "start_memory" => integer 4471144
        "stop_time" => float 1406608605.9358
        "stop_memory" => integer 4471720
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9398
        "start_memory" => integer 4497184
        "stop_time" => float 1406608605.9399
        "stop_memory" => integer 4497768
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.94
        "start_memory" => integer 4502704
        "stop_time" => float 1406608605.94
        "stop_memory" => integer 4503280
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.944
        "start_memory" => integer 4528912
        "stop_time" => float 1406608605.944
        "stop_memory" => integer 4529472
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9441
        "start_memory" => integer 4534328
        "stop_time" => float 1406608605.9442
        "stop_memory" => integer 4535408
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9453
        "start_memory" => integer 4624136
        "stop_time" => float 1406608605.9453
        "stop_memory" => integer 4624736
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9519
        "start_memory" => integer 4631656
        "stop_time" => float 1406608605.9519
        "stop_memory" => integer 4632208
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9521
        "start_memory" => integer 4637088
        "stop_time" => float 1406608605.9521
        "stop_memory" => integer 4637672
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9689
        "start_memory" => integer 4694584
        "stop_time" => float 1406608605.969
        "stop_memory" => integer 4695144
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9691
        "start_memory" => integer 4700064
        "stop_time" => float 1406608605.9692
        "stop_memory" => integer 4700648
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9694
        "start_memory" => integer 4724512
        "stop_time" => float 1406608605.9694
        "stop_memory" => integer 4725088
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9702
        "start_memory" => integer 4734168
        "stop_time" => float 1406608605.9702
        "stop_memory" => integer 4734728
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9704
        "start_memory" => integer 4739592
        "stop_time" => float 1406608605.9704
        "stop_memory" => integer 4740176
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9719
        "start_memory" => integer 4819624
        "stop_time" => float 1406608605.9719
        "stop_memory" => integer 4820184
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.972
        "start_memory" => integer 4825064
        "stop_time" => float 1406608605.972
        "stop_memory" => integer 4825648
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9795
        "start_memory" => integer 4851376
        "stop_time" => float 1406608605.9795
        "stop_memory" => integer 4851936
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9797
        "start_memory" => integer 4856800
        "stop_time" => float 1406608605.9797
        "stop_memory" => integer 4857384
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9807
        "start_memory" => integer 4878808
        "stop_time" => float 1406608605.9808
        "stop_memory" => integer 4879336
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9809
        "start_memory" => integer 4883984
        "stop_time" => float 1406608605.9809
        "stop_memory" => integer 4884552
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9825
        "start_memory" => integer 4895408
        "stop_time" => float 1406608605.9825
        "stop_memory" => integer 4896000
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9826
        "start_memory" => integer 4900888
        "stop_time" => float 1406608605.9826
        "stop_memory" => integer 4901464
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9864
        "start_memory" => integer 4946448
        "stop_time" => float 1406608605.9865
        "stop_memory" => integer 4947024
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9871
        "start_memory" => integer 4958160
        "stop_time" => float 1406608605.9872
        "stop_memory" => integer 4958704
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9873
        "start_memory" => integer 4964600
        "stop_time" => float 1406608605.9874
        "stop_memory" => integer 4965176
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9916
        "start_memory" => integer 4986632
        "stop_time" => float 1406608605.9917
        "stop_memory" => integer 4987200
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.994
        "start_memory" => integer 4992752
        "stop_time" => float 1406608605.994
        "stop_memory" => integer 4993320
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9941
        "start_memory" => integer 4998168
        "stop_time" => float 1406608605.9941
        "stop_memory" => integer 4998752
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9965
        "start_memory" => integer 5132536
        "stop_time" => float 1406608605.9965
        "stop_memory" => integer 5133112
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9967
        "start_memory" => integer 5138064
        "stop_time" => float 1406608605.9967
        "stop_memory" => integer 5138656
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9975
        "start_memory" => integer 5153504
        "stop_time" => float 1406608605.9975
        "stop_memory" => integer 5154072
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9976
        "start_memory" => integer 5159032
        "stop_time" => float 1406608605.9976
        "stop_memory" => integer 5159624
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9992
        "start_memory" => integer 5165560
        "stop_time" => float 1406608605.9992
        "stop_memory" => integer 5166112
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608605.9993
        "start_memory" => integer 5170984
        "stop_time" => float 1406608605.9993
        "stop_memory" => integer 5171560
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0007
        "start_memory" => integer 5316184
        "stop_time" => float 1406608606.0008
        "stop_memory" => integer 5316760
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0009
        "start_memory" => integer 5321720
        "stop_time" => float 1406608606.0009
        "stop_memory" => integer 5322312
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0011
        "start_memory" => integer 5342992
        "stop_time" => float 1406608606.0011
        "stop_memory" => integer 5343560
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0012
        "start_memory" => integer 5348448
        "stop_time" => float 1406608606.0012
        "stop_memory" => integer 5349024
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0022
        "start_memory" => integer 5411352
        "stop_time" => float 1406608606.0023
        "stop_memory" => integer 5411912
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0024
        "start_memory" => integer 5416784
        "stop_time" => float 1406608606.0024
        "stop_memory" => integer 5417368
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0034
        "start_memory" => integer 5482872
        "stop_time" => float 1406608606.0034
        "stop_memory" => integer 5483432
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0036
        "start_memory" => integer 5488296
        "stop_time" => float 1406608606.0036
        "stop_memory" => integer 5488880
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0047
        "start_memory" => integer 5531536
        "stop_time" => float 1406608606.0048
        "stop_memory" => integer 5532112
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0049
        "start_memory" => integer 5537080
        "stop_time" => float 1406608606.0049
        "stop_memory" => integer 5537672
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.006
        "start_memory" => integer 5596512
        "stop_time" => float 1406608606.006
        "stop_memory" => integer 5597096
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0061
        "start_memory" => integer 5602160
        "stop_time" => float 1406608606.0062
        "stop_memory" => integer 5602760
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0064
        "start_memory" => integer 5622432
        "stop_time" => float 1406608606.0064
        "stop_memory" => integer 5623008
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0065
        "start_memory" => integer 5628072
        "stop_time" => float 1406608606.0065
        "stop_memory" => integer 5628672
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0075
        "start_memory" => integer 5693096
        "stop_time" => float 1406608606.0075
        "stop_memory" => integer 5693672
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0076
        "start_memory" => integer 5698736
        "stop_time" => float 1406608606.0076
        "stop_memory" => integer 5699336
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0085
        "start_memory" => integer 5747664
        "stop_time" => float 1406608606.0085
        "stop_memory" => integer 5748240
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0086
        "start_memory" => integer 5753296
        "stop_time" => float 1406608606.0086
        "stop_memory" => integer 5753896
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0095
        "start_memory" => integer 5795200
        "stop_time" => float 1406608606.0095
        "stop_memory" => integer 5795776
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0096
        "start_memory" => integer 5800840
        "stop_time" => float 1406608606.0097
        "stop_memory" => integer 5801440
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0109
        "start_memory" => integer 5914368
        "stop_time" => float 1406608606.0109
        "stop_memory" => integer 5914944
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0111
        "start_memory" => integer 5920008
        "stop_time" => float 1406608606.0111
        "stop_memory" => integer 5920608
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0136
        "start_memory" => integer 5969232
        "stop_time" => float 1406608606.0136
        "stop_memory" => integer 5969792
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0137
        "start_memory" => integer 5974760
        "stop_time" => float 1406608606.0137
        "stop_memory" => integer 5975352
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0147
        "start_memory" => integer 5998464
        "stop_time" => float 1406608606.0147
        "stop_memory" => integer 5998984
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0148
        "start_memory" => integer 6003624
        "stop_time" => float 1406608606.0149
        "stop_memory" => integer 6004192
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0156
        "start_memory" => integer 6121840
        "stop_time" => float 1406608606.0157
        "stop_memory" => integer 6122384
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0165
        "start_memory" => integer 6123440
        "stop_time" => float 1406608606.0165
        "stop_memory" => integer 6124008
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0166
        "start_memory" => integer 6128680
        "stop_time" => float 1406608606.0167
        "stop_memory" => integer 6129256
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0211
        "start_memory" => integer 6149576
        "stop_time" => float 1406608606.0212
        "stop_memory" => integer 6150112
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0213
        "start_memory" => integer 6154776
        "stop_time" => float 1406608606.0213
        "stop_memory" => integer 6155344
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0237
        "start_memory" => integer 6192832
        "stop_time" => float 1406608606.0237
        "stop_memory" => integer 6193376
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0238
        "start_memory" => integer 6198016
        "stop_time" => float 1406608606.0239
        "stop_memory" => integer 6198584
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0248
        "start_memory" => integer 6240984
        "stop_time" => float 1406608606.0248
        "stop_memory" => integer 6241528
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0249
        "start_memory" => integer 6246168
        "stop_time" => float 1406608606.0249
        "stop_memory" => integer 6246736
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0257
        "start_memory" => integer 6290928
        "stop_time" => float 1406608606.0257
        "stop_memory" => integer 6292496
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0258
        "start_memory" => integer 6297144
        "stop_time" => float 1406608606.0258
        "stop_memory" => integer 6297712
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0273
        "start_memory" => integer 6373216
        "stop_time" => float 1406608606.0273
        "stop_memory" => integer 6373760
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0274
        "start_memory" => integer 6378424
        "stop_time" => float 1406608606.0275
        "stop_memory" => integer 6378992
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.03
        "start_memory" => integer 6401176
        "stop_time" => float 1406608606.03
        "stop_memory" => integer 6401736
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0301
        "start_memory" => integer 6406376
        "stop_time" => float 1406608606.0301
        "stop_memory" => integer 6406944
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0316
        "start_memory" => integer 6436424
        "stop_time" => float 1406608606.0317
        "stop_memory" => integer 6437000
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0318
        "start_memory" => integer 6441848
        "stop_time" => float 1406608606.0318
        "stop_memory" => integer 6442424
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0324
        "start_memory" => integer 6462744
        "stop_time" => float 1406608606.0324
        "stop_memory" => integer 6463312
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0325
        "start_memory" => integer 6468264
        "stop_time" => float 1406608606.0326
        "stop_memory" => integer 6468848
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0334
        "start_memory" => integer 6483872
        "stop_time" => float 1406608606.0334
        "stop_memory" => integer 6484432
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0336
        "start_memory" => integer 6489368
        "stop_time" => float 1406608606.0336
        "stop_memory" => integer 6489952
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0343
        "start_memory" => integer 6505000
        "stop_time" => float 1406608606.0343
        "stop_memory" => integer 6505560
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0344
        "start_memory" => integer 6510496
        "stop_time" => float 1406608606.0345
        "stop_memory" => integer 6511080
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0352
        "start_memory" => integer 6526128
        "stop_time" => float 1406608606.0352
        "stop_memory" => integer 6526688
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0353
        "start_memory" => integer 6531624
        "stop_time" => float 1406608606.0354
        "stop_memory" => integer 6532208
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.036
        "start_memory" => integer 6547232
        "stop_time" => float 1406608606.036
        "stop_memory" => integer 6547792
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0361
        "start_memory" => integer 6552728
        "stop_time" => float 1406608606.0362
        "stop_memory" => integer 6553312
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0369
        "start_memory" => integer 6568336
        "stop_time" => float 1406608606.0369
        "stop_memory" => integer 6568896
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.037
        "start_memory" => integer 6573832
        "stop_time" => float 1406608606.037
        "stop_memory" => integer 6574416
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0377
        "start_memory" => integer 6589472
        "stop_time" => float 1406608606.0378
        "stop_memory" => integer 6590032
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0379
        "start_memory" => integer 6594968
        "stop_time" => float 1406608606.038
        "stop_memory" => integer 6595552
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0387
        "start_memory" => integer 6610576
        "stop_time" => float 1406608606.0387
        "stop_memory" => integer 6611136
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0388
        "start_memory" => integer 6616072
        "stop_time" => float 1406608606.0389
        "stop_memory" => integer 6616656
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0397
        "start_memory" => integer 6631792
        "stop_time" => float 1406608606.0398
        "stop_memory" => integer 6632352
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0399
        "start_memory" => integer 6637288
        "stop_time" => float 1406608606.04
        "stop_memory" => integer 6637872
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.041
        "start_memory" => integer 6652904
        "stop_time" => float 1406608606.0411
        "stop_memory" => integer 6653464
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0412
        "start_memory" => integer 6658400
        "stop_time" => float 1406608606.0412
        "stop_memory" => integer 6658984
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0422
        "start_memory" => integer 6674024
        "stop_time" => float 1406608606.0423
        "stop_memory" => integer 6674584
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0424
        "start_memory" => integer 6679520
        "stop_time" => float 1406608606.0424
        "stop_memory" => integer 6680104
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0435
        "start_memory" => integer 6695112
        "stop_time" => float 1406608606.0435
        "stop_memory" => integer 6695672
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0437
        "start_memory" => integer 6700608
        "stop_time" => float 1406608606.0437
        "stop_memory" => integer 6701192
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0444
        "start_memory" => integer 6716216
        "stop_time" => float 1406608606.0444
        "stop_memory" => integer 6716776
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0447
        "start_memory" => integer 6721712
        "stop_time" => float 1406608606.0447
        "stop_memory" => integer 6722296
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0452
        "start_memory" => integer 6737336
        "stop_time" => float 1406608606.0453
        "stop_memory" => integer 6737896
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0454
        "start_memory" => integer 6742832
        "stop_time" => float 1406608606.0454
        "stop_memory" => integer 6743416
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.046
        "start_memory" => integer 6758472
        "stop_time" => float 1406608606.046
        "stop_memory" => integer 6759032
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0461
        "start_memory" => integer 6763968
        "stop_time" => float 1406608606.0461
        "stop_memory" => integer 6764552
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0469
        "start_memory" => integer 6779600
        "stop_time" => float 1406608606.0471
        "stop_memory" => integer 6780160
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0472
        "start_memory" => integer 6785096
        "stop_time" => float 1406608606.0473
        "stop_memory" => integer 6785680
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0481
        "start_memory" => integer 6800864
        "stop_time" => float 1406608606.0481
        "stop_memory" => integer 6801424
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0482
        "start_memory" => integer 6806360
        "stop_time" => float 1406608606.0482
        "stop_memory" => integer 6806944
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0489
        "start_memory" => integer 6822016
        "stop_time" => float 1406608606.049
        "stop_memory" => integer 6822576
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.049
        "start_memory" => integer 6827512
        "stop_time" => float 1406608606.0491
        "stop_memory" => integer 6828096
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0497
        "start_memory" => integer 6843152
        "stop_time" => float 1406608606.0497
        "stop_memory" => integer 6843712
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0498
        "start_memory" => integer 6848648
        "stop_time" => float 1406608606.0499
        "stop_memory" => integer 6849232
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0504
        "start_memory" => integer 6864280
        "stop_time" => float 1406608606.0505
        "stop_memory" => integer 6864840
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0506
        "start_memory" => integer 6869776
        "stop_time" => float 1406608606.0506
        "stop_memory" => integer 6870360
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0512
        "start_memory" => integer 6885384
        "stop_time" => float 1406608606.0512
        "stop_memory" => integer 6885944
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0513
        "start_memory" => integer 6890880
        "stop_time" => float 1406608606.0513
        "stop_memory" => integer 6891464
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0522
        "start_memory" => integer 6906488
        "stop_time" => float 1406608606.0522
        "stop_memory" => integer 6907048
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0523
        "start_memory" => integer 6911984
        "stop_time" => float 1406608606.0524
        "stop_memory" => integer 6912568
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0538
        "start_memory" => integer 6927624
        "stop_time" => float 1406608606.0539
        "stop_memory" => integer 6928184
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.054
        "start_memory" => integer 6933120
        "stop_time" => float 1406608606.054
        "stop_memory" => integer 6933704
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.055
        "start_memory" => integer 6948744
        "stop_time" => float 1406608606.055
        "stop_memory" => integer 6949304
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0551
        "start_memory" => integer 6954240
        "stop_time" => float 1406608606.0552
        "stop_memory" => integer 6954824
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0574
        "start_memory" => integer 6970088
        "stop_time" => float 1406608606.0576
        "stop_memory" => integer 6970648
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0577
        "start_memory" => integer 6975560
        "stop_time" => float 1406608606.0578
        "stop_memory" => integer 6976128
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0616
        "start_memory" => integer 7014152
        "stop_time" => float 1406608606.0617
        "stop_memory" => integer 7014704
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0618
        "start_memory" => integer 7019376
        "stop_time" => float 1406608606.0618
        "stop_memory" => integer 7019952
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0637
        "start_memory" => integer 7151016
        "stop_time" => float 1406608606.0638
        "stop_memory" => integer 7151568
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0639
        "start_memory" => integer 7156248
        "stop_time" => float 1406608606.0639
        "stop_memory" => integer 7156824
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0662
        "start_memory" => integer 7326024
        "stop_time" => float 1406608606.0663
        "stop_memory" => integer 7326576
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0664
        "start_memory" => integer 7331264
        "stop_time" => float 1406608606.0665
        "stop_memory" => integer 7331824
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0699
        "start_memory" => integer 7387488
        "stop_time" => float 1406608606.0699
        "stop_memory" => integer 7388064
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.07
        "start_memory" => integer 7392976
        "stop_time" => float 1406608606.0701
        "stop_memory" => integer 7393544
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.071
        "start_memory" => integer 7433584
        "stop_time" => float 1406608606.0711
        "stop_memory" => integer 7434160
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0711
        "start_memory" => integer 7439112
        "stop_time" => float 1406608606.0712
        "stop_memory" => integer 7439704
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0728
        "start_memory" => integer 7465648
        "stop_time" => float 1406608606.0728
        "stop_memory" => integer 7466216
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0729
        "start_memory" => integer 7471088
        "stop_time" => float 1406608606.073
        "stop_memory" => integer 7471664
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0748
        "start_memory" => integer 7497720
        "stop_time" => float 1406608606.0748
        "stop_memory" => integer 7498296
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0793
        "start_memory" => integer 7509200
        "stop_time" => float 1406608606.0793
        "stop_memory" => integer 7509760
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0797
        "start_memory" => integer 7519648
        "stop_time" => float 1406608606.0797
        "stop_memory" => integer 7520216
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0811
        "start_memory" => integer 7530816
        "stop_time" => float 1406608606.0812
        "stop_memory" => integer 7531368
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0812
        "start_memory" => integer 7536080
        "stop_time" => float 1406608606.0813
        "stop_memory" => integer 7536680
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0819
        "start_memory" => integer 7542144
        "stop_time" => float 1406608606.0819
        "stop_memory" => integer 7542696
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0821
        "start_memory" => integer 7547424
        "stop_time" => float 1406608606.0821
        "stop_memory" => integer 7548000
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0827
        "start_memory" => integer 7553448
        "stop_time" => float 1406608606.0827
        "stop_memory" => integer 7554000
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0828
        "start_memory" => integer 7558752
        "stop_time" => float 1406608606.0829
        "stop_memory" => integer 7559328
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.084
        "start_memory" => integer 7571344
        "stop_time" => float 1406608606.0841
        "stop_memory" => integer 7571880
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0842
        "start_memory" => integer 7576544
        "stop_time" => float 1406608606.0842
        "stop_memory" => integer 7577096
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0846
        "start_memory" => integer 7580160
        "stop_time" => float 1406608606.0847
        "stop_memory" => integer 7580736
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0848
        "start_memory" => integer 7590024
        "stop_time" => float 1406608606.0848
        "stop_memory" => integer 7590560
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.085
        "start_memory" => integer 7597256
        "stop_time" => float 1406608606.085
        "stop_memory" => integer 7597824
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0875
        "start_memory" => integer 7975256
        "stop_time" => float 1406608606.0875
        "stop_memory" => integer 7975832
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0884
        "start_memory" => integer 8050288
        "stop_time" => float 1406608606.0884
        "stop_memory" => integer 8050872
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0892
        "start_memory" => integer 8096104
        "stop_time" => float 1406608606.0893
        "stop_memory" => integer 8096664
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0893
        "start_memory" => integer 8101528
        "stop_time" => float 1406608606.0894
        "stop_memory" => integer 8102112
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0902
        "start_memory" => integer 8111072
        "stop_time" => float 1406608606.0903
        "stop_memory" => integer 8111616
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.091
        "start_memory" => integer 8143080
        "stop_time" => float 1406608606.0911
        "stop_memory" => integer 8143640
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0918
        "start_memory" => integer 8178072
        "stop_time" => float 1406608606.0919
        "stop_memory" => integer 8178648
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0924
        "start_memory" => integer 8210760
        "stop_time" => float 1406608606.0924
        "stop_memory" => integer 8211296
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0925
        "start_memory" => integer 8215952
        "stop_time" => float 1406608606.0926
        "stop_memory" => integer 8216520
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.095
        "start_memory" => integer 8258328
        "stop_time" => float 1406608606.095
        "stop_memory" => integer 8258920
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0951
        "start_memory" => integer 8264104
        "stop_time" => float 1406608606.0951
        "stop_memory" => integer 8264696
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0979
        "start_memory" => integer 8308816
        "stop_time" => float 1406608606.098
        "stop_memory" => integer 8309368
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.0981
        "start_memory" => integer 8314304
        "stop_time" => float 1406608606.0982
        "stop_memory" => integer 8314888
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1028
        "start_memory" => integer 8416576
        "stop_time" => float 1406608606.1029
        "stop_memory" => integer 8417104
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.103
        "start_memory" => integer 8421760
        "stop_time" => float 1406608606.1031
        "stop_memory" => integer 8422328
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1036
        "start_memory" => integer 8437256
        "stop_time" => float 1406608606.1036
        "stop_memory" => integer 8437808
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1037
        "start_memory" => integer 8442456
        "stop_time" => float 1406608606.1038
        "stop_memory" => integer 8443024
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1048
        "start_memory" => integer 8509456
        "stop_time" => float 1406608606.1049
        "stop_memory" => integer 8510016
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.105
        "start_memory" => integer 8514872
        "stop_time" => float 1406608606.105
        "stop_memory" => integer 8515448
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1056
        "start_memory" => integer 8538888
        "stop_time" => float 1406608606.1056
        "stop_memory" => integer 8539496
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1057
        "start_memory" => integer 8544416
        "stop_time" => float 1406608606.1058
        "stop_memory" => integer 8545008
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1075
        "start_memory" => integer 8616000
        "stop_time" => float 1406608606.1075
        "stop_memory" => integer 8616536
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1076
        "start_memory" => integer 8621408
        "stop_time" => float 1406608606.1077
        "stop_memory" => integer 8621960
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1083
        "start_memory" => integer 8649664
        "stop_time" => float 1406608606.1084
        "stop_memory" => integer 8650200
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1085
        "start_memory" => integer 8654856
        "stop_time" => float 1406608606.1086
        "stop_memory" => integer 8655424
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1097
        "start_memory" => integer 8776648
        "stop_time" => float 1406608606.1098
        "stop_memory" => integer 8777192
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1099
        "start_memory" => integer 8781864
        "stop_time" => float 1406608606.11
        "stop_memory" => integer 8782432
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.115
        "start_memory" => integer 8813816
        "stop_time" => float 1406608606.115
        "stop_memory" => integer 8814360
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1151
        "start_memory" => integer 8819008
        "stop_time" => float 1406608606.1152
        "stop_memory" => integer 8819576
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1161
        "start_memory" => integer 8919880
        "stop_time" => float 1406608606.1161
        "stop_memory" => integer 8920440
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1162
        "start_memory" => integer 8925152
        "stop_time" => float 1406608606.1163
        "stop_memory" => integer 8925728
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1172
        "start_memory" => integer 9033464
        "stop_time" => float 1406608606.1172
        "stop_memory" => integer 9034032
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1173
        "start_memory" => integer 9038952
        "stop_time" => float 1406608606.1173
        "stop_memory" => integer 9039536
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1182
        "start_memory" => integer 9060728
        "stop_time" => float 1406608606.1182
        "stop_memory" => integer 9061304
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1186
        "start_memory" => integer 9025776
        "stop_time" => float 1406608606.1186
        "stop_memory" => integer 9027712
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1191
        "start_memory" => integer 9098432
        "stop_time" => float 1406608606.1192
        "stop_memory" => integer 9100160
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406608606.1192
        "start_memory" => integer 9099920
        "stop_time" => float 1406608606.1192
        "stop_memory" => integer 9101648
    )
)

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