Rundiz/Profiler/Profiler.php
private function gatherFiles()
    {
        if (!array_key_exists('Files', $this->log_sections)) {
            return ;
        }

        $files = get_included_files();
        $section_data_array = [];
        $total_size = 0;
        $largest_size = 0;

        if (is_array($files)) {
            foreach ($files as $file) {
                $size = filesize($file);
                $section_data_array[] = [
                    'data' => $file,
                    'size' => $size,
                ];
                $total_size = bcadd($total_size, $size);

                if ($size > $largest_size) {
                    $largest_size = $size;
                }
            }// endforeach;
            unset($file, $size);
        }

        $section_data_array['total_size'] = $total_size;
        $section_data_array['largest_size'] = $largest_size;
        unset($largest_size, $total_size);

        $this->log_sections['Files'] = $section_data_array;
        unset($files, $section_data_array);
    }
private function gatherFiles()
    {
        if (!array_key_exists('Files', $this->log_sections)) {
            return ;
        }

        $files = get_included_files();
        $section_data_array = [];
        $total_size = 0;
        $largest_size = 0;

        if (is_array($files)) {
            foreach ($files as $file) {
                $size = filesize($file);
                $section_data_array[] = [
                    'data' => $file,
                    'size' => $size,
                ];
                $total_size = bcadd($total_size, $size);

                if ($size > $largest_size) {
                    $largest_size = $size;
                }
            }// endforeach;
            unset($file, $size);
        }

        $section_data_array['total_size'] = $total_size;
        $section_data_array['largest_size'] = $largest_size;
        unset($largest_size, $total_size);

        $this->log_sections['Files'] = $section_data_array;
        unset($files, $section_data_array);
    }
gather included files and its size.