@@ 41-56 (lines=16) @@ | ||
38 | /** |
|
39 | * {@inheritdoc} |
|
40 | */ |
|
41 | protected function doSendInternalRequest(InternalRequestInterface $internalRequest) |
|
42 | { |
|
43 | $this->stopwatch->start($name = 'ivory.http_adapter'); |
|
44 | ||
45 | try { |
|
46 | $result = parent::doSendInternalRequest($internalRequest); |
|
47 | } catch (\Exception $e) { |
|
48 | $this->stopwatch->stop($name); |
|
49 | ||
50 | throw $e; |
|
51 | } |
|
52 | ||
53 | $this->stopwatch->stop($name); |
|
54 | ||
55 | return $result; |
|
56 | } |
|
57 | ||
58 | /** |
|
59 | * {@inheritdoc} |
|
@@ 61-76 (lines=16) @@ | ||
58 | /** |
|
59 | * {@inheritdoc} |
|
60 | */ |
|
61 | protected function doSendInternalRequests(array $internalRequests) |
|
62 | { |
|
63 | $this->stopwatch->start($name = 'ivory.http_adapter'); |
|
64 | ||
65 | try { |
|
66 | $result = parent::doSendInternalRequests($internalRequests); |
|
67 | } catch (\Exception $e) { |
|
68 | $this->stopwatch->stop($name); |
|
69 | ||
70 | throw $e; |
|
71 | } |
|
72 | ||
73 | $this->stopwatch->stop($name); |
|
74 | ||
75 | return $result; |
|
76 | } |
|
77 | } |
|
78 |