SILENT KILLERPanel

Current Path: > home > transcarter > public_html > wp-content > plugins > revslider > admin > > includes > >


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.135
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/transcarter/public_html/wp-content/plugins/revslider/admin//includes//

NameTypeSizeLast ModifiedActions
shortcode_generator Directory - -
addons.class.php File 7329 bytes March 10 2023 20:44:18.
debug.php File 2874 bytes March 10 2023 20:44:18.
export-html.class.php File 31803 bytes March 10 2023 20:44:18.
export.class.php File 28973 bytes March 10 2023 20:44:18.
folder.class.php File 4267 bytes March 10 2023 20:44:18.
functions-admin.class.php File 67583 bytes March 10 2023 20:44:18.
help.class.php File 606729 bytes March 10 2023 20:44:18.
import.class.php File 76384 bytes March 10 2023 20:44:18.
index.php File 27 bytes March 10 2023 20:44:18.
license.class.php File 2056 bytes March 10 2023 20:44:18.
loadbalancer.class.php File 3202 bytes March 10 2023 20:44:18.
newsletter.class.php File 1731 bytes March 10 2023 20:44:18.
plugin-update.class.php File 374003 bytes March 10 2023 20:44:18.
template.class.php File 32031 bytes March 10 2023 20:44:18.
tooltips.class.php File 32520 bytes March 10 2023 20:44:18.
tracking.class.php File 10714 bytes March 10 2023 20:44:18.
widget.class.php File 4732 bytes March 10 2023 20:44:18.

Reading File: /home/transcarter/public_html/wp-content/plugins/revslider/admin//includes///debug.php

<?php

if( !defined( 'ABSPATH') ) exit();

class RevSliderMemoryUsageInformation
{

    private $real_usage;
    private $statistics = array();

    // Memory Usage Information constructor
    public function __construct($real_usage = false)
    {
        $this->real_usage = $real_usage;
    }

    // Returns current memory usage with or without styling
    public function getCurrentMemoryUsage($with_style = true)
    {
        $mem = memory_get_usage($this->real_usage);
        return ($with_style) ? $this->byteFormat($mem) : $mem;
    }

    // Returns peak of memory usage
    public function getPeakMemoryUsage($with_style = true)
    {
        $mem = memory_get_peak_usage($this->real_usage);
        return ($with_style) ? $this->byteFormat($mem) : $mem;
    }

    // Set memory usage with info
    public function setMemoryUsage($info = '')
    {
        $this->statistics[] = array(
			'time' => microtime(), //time(),
            'info' => $info,
            'memory_usage' => $this->getCurrentMemoryUsage());
    }

    // Print all memory usage info and memory limit and 
    public function printMemoryUsageInformation()
    {
		//return true;
		echo '<pre>';
        foreach ($this->statistics as $satistic)
        {
            echo "Time: " . $satistic['time'] .
            " | Memory Usage: " . $satistic['memory_usage'] .
            " | Info: " . $satistic['info'];
            echo "\n";
        }
        echo "\n\n";
        echo "Peak of memory usage: " . $this->getPeakMemoryUsage();
        echo "\n\n";
		echo '</pre>';
    }

    // Set start with default info or some custom info
    public function setStart($info = 'Initial Memory Usage')
    {
        $this->setMemoryUsage($info);
    }

    // Set end with default info or some custom info
    public function setEnd($info = 'Memory Usage at the End')
    {
        $this->setMemoryUsage($info);
    }

    // Byte formatting
    private function byteFormat($bytes, $unit = "", $decimals = 2)
    {
        $units = array('B' => 0, 'KB' => 1, 'MB' => 2, 'GB' => 3, 'TB' => 4,
            'PB' => 5, 'EB' => 6, 'ZB' => 7, 'YB' => 8);

        $value = 0;
        if ($bytes > 0)
        {
            // Generate automatic prefix by bytes 
            // If wrong prefix given
            if (!array_key_exists($unit, $units))
            {
                $pow = floor(log($bytes) / log(1024));
                $unit = array_search($pow, $units);
            }

            // Calculate byte value by prefix
            $value = ($bytes / pow(1024, floor($units[$unit])));
        }

        // If decimals is not numeric or decimals is less than 0 
        // then set default value
        if (!is_numeric($decimals) || $decimals < 0)
        {
            $decimals = 2;
        }

        // Format output
        return sprintf('%.' . $decimals . 'f ' . $unit, $value);
    }

}

SILENT KILLER Tool