src/Viserio/Component/Profiler/DataCollector/Bridge/Cache/Traits/TraceableCacheItemDecoratorTrait.php
public function getItem($key)
    {
        $event = $this->start(__FUNCTION__);

        try {
            $item = $this->pool->getItem($key);
        } finally {
            $event->end = \microtime(true);
        }

        if ($event->result[$key] = $item->isHit()) {
            $event->hits++;
        } else {
            $event->misses++;
        }

        return $item;
    }
public function getItem($key)
    {
        $event = $this->start(__FUNCTION__);

        try {
            $item = $this->pool->getItem($key);
        } finally {
            $event->end = \microtime(true);
        }

        if ($event->result[$key] = $item->isHit()) {
            $event->hits++;
        } else {
            $event->misses++;
        }

        return $item;
    }
{@inheritdoc}