One Hat Cyber Team
Your IP :
172.70.80.190
Server IP :
188.114.97.3
Server :
Linux thuru 6.5.11-4-pve #1 SMP PREEMPT_DYNAMIC PMX 6.5.11-4 (2023-11-20T10:19Z) x86_64
Server Software :
Apache/2.4.51 (Unix) OpenSSL/1.0.2k-fips
PHP Version :
7.3.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
thuruk
/
public_html
/
App
/
web
/
Edit File:
Timers.php
<?php /** * This file is part of the CodeIgniter 4 framework. * * (c) CodeIgniter Foundation <admin@codeigniter.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace CodeIgniter\Debug\Toolbar\Collectors; use Config\Services; /** * Timers collector */ class Timers extends BaseCollector { /** * Whether this collector has data that can * be displayed in the Timeline. * * @var boolean */ protected $hasTimeline = true; /** * Whether this collector needs to display * content in a tab or not. * * @var boolean */ protected $hasTabContent = false; /** * The 'title' of this Collector. * Used to name things in the toolbar HTML. * * @var string */ protected $title = 'Timers'; //-------------------------------------------------------------------- /** * Child classes should implement this to return the timeline data * formatted for correct usage. * * @return array */ protected function formatTimelineData(): array { $data = []; $benchmark = Services::timer(true); $rows = $benchmark->getTimers(6); foreach ($rows as $name => $info) { if ($name === 'total_execution') { continue; } $data[] = [ 'name' => ucwords(str_replace('_', ' ', $name)), 'component' => 'Timer', 'start' => $info['start'], 'duration' => $info['end'] - $info['start'], ]; } return $data; } }
Simpan