# jch-optimize/trunk/lib/src/Debug/NullProfiler.php

JCH Optimize, version trunk. 36 lines.

- Page: https://pluginprobe.com/plugins/jch-optimize/trunk/code/lib/src/Debug/NullProfiler.php
- Raw: https://pluginprobe.com/plugins/jch-optimize/trunk/raw/lib/src/Debug/NullProfiler.php
- Modified: 2026-07-04T02:31:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jch-optimize/trunk/code/lib/src/Debug/NullProfiler.php#L10-L20`.

```php
<?php

/**
 * JCH Optimize - Performs several front-end optimizations for fast downloads
 *
 * @package   jchoptimize/core
 * @author    Samuel Marshall <samuel@jch-optimize.net>
 * @copyright Copyright (c) 2026 Samuel Marshall / JCH Optimize
 * @license   GNU/GPLv3, or later. See LICENSE file
 *
 *  If LICENSE file missing, see <http://www.gnu.org/licenses/>.
 */

namespace JchOptimize\Core\Debug;

class NullProfiler implements JchProfilerInterface
{
    public function start(string $name): void
    {
    }

    public function stop(): void
    {
    }

    public function profile(string $name, callable $fn): mixed
    {
        return $fn();
    }

    public function measure(string $name, callable $fn): mixed
    {
        return $fn();
    }
}

```
