Rundiz/Profiler/Profiler.php
public function gatherAll()
    {
        // don't call getMicrotime and memory_get_peak_usage in display page because it can increase too much.
        // at this point the application process should end already. push these number into class's property instead.
        $this->end_time = $this->getMicrotime();
        $this->max_memory_usage = memory_get_peak_usage();

        $this->gatherFiles();
        $this->gatherInputGet();
        $this->gatherInputPost();
        $this->gatherInputSession();
    }
public function gatherAll()
    {
        // don't call getMicrotime and memory_get_peak_usage in display page because it can increase too much.
        // at this point the application process should end already. push these number into class's property instead.
        $this->end_time = $this->getMicrotime();
        $this->max_memory_usage = memory_get_peak_usage();

        $this->gatherFiles();
        $this->gatherInputGet();
        $this->gatherInputPost();
        $this->gatherInputSession();
    }
gather all data before call display. this can be done automatically if you just call display().