var_dev/cache/dev/twig/0d/0d871de54f7dd37540ae2d0978371df4.php line 55

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @WebProfiler/Collector/cache.html.twig */
  16. class __TwigTemplate_fef959ca322e9082fab2274b17681d8c extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->blocks = [
  28. 'toolbar' => [$this, 'block_toolbar'],
  29. 'menu' => [$this, 'block_menu'],
  30. 'panel' => [$this, 'block_panel'],
  31. ];
  32. }
  33. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34. {
  35. // line 1
  36. return "@WebProfiler/Profiler/layout.html.twig";
  37. }
  38. protected function doDisplay(array $context, array $blocks = []): iterable
  39. {
  40. $macros = $this->macros;
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/cache.html.twig"));
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/cache.html.twig"));
  45. $this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@WebProfiler/Collector/cache.html.twig", 1);
  46. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49. }
  50. // line 3
  51. /**
  52. * @return iterable<null|scalar|\Stringable>
  53. */
  54. public function block_toolbar(array $context, array $blocks = []): iterable
  55. {
  56. $macros = $this->macros;
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
  61. // line 4
  62. yield " ";
  63. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 4, $this->source); })()), "totals", [], "any", false, false, false, 4), "calls", [], "any", false, false, false, 4) > 0)) {
  64. // line 5
  65. yield " ";
  66. $context["icon"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  67. // line 6
  68. yield " ";
  69. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Icon/cache.svg");
  70. yield "
  71. <span class=\"sf-toolbar-value\">";
  72. // line 7
  73. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 7, $this->source); })()), "totals", [], "any", false, false, false, 7), "calls", [], "any", false, false, false, 7), "html", null, true);
  74. yield "</span>
  75. <span class=\"sf-toolbar-info-piece-additional-detail\">
  76. <span class=\"sf-toolbar-label\">in</span>
  77. <span class=\"sf-toolbar-value\">";
  78. // line 10
  79. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::sprintf("%0.2f", (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 10, $this->source); })()), "totals", [], "any", false, false, false, 10), "time", [], "any", false, false, false, 10) * 1000)), "html", null, true);
  80. yield "</span>
  81. <span class=\"sf-toolbar-label\">ms</span>
  82. </span>
  83. ";
  84. yield from [];
  85. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  86. // line 14
  87. yield " ";
  88. $context["text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  89. // line 15
  90. yield " <div class=\"sf-toolbar-info-piece\">
  91. <b>Cache Calls</b>
  92. <span>";
  93. // line 17
  94. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 17, $this->source); })()), "totals", [], "any", false, false, false, 17), "calls", [], "any", false, false, false, 17), "html", null, true);
  95. yield "</span>
  96. </div>
  97. <div class=\"sf-toolbar-info-piece\">
  98. <b>Total time</b>
  99. <span>";
  100. // line 21
  101. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::sprintf("%0.2f", (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 21, $this->source); })()), "totals", [], "any", false, false, false, 21), "time", [], "any", false, false, false, 21) * 1000)), "html", null, true);
  102. yield " ms</span>
  103. </div>
  104. <div class=\"sf-toolbar-info-piece\">
  105. <b>Cache hits</b>
  106. <span>";
  107. // line 25
  108. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 25, $this->source); })()), "totals", [], "any", false, false, false, 25), "hits", [], "any", false, false, false, 25), "html", null, true);
  109. yield " / ";
  110. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 25, $this->source); })()), "totals", [], "any", false, false, false, 25), "reads", [], "any", false, false, false, 25), "html", null, true);
  111. if ( !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 25, $this->source); })()), "totals", [], "any", false, false, false, 25), "hit_read_ratio", [], "any", false, false, false, 25))) {
  112. yield " (";
  113. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 25, $this->source); })()), "totals", [], "any", false, false, false, 25), "hit_read_ratio", [], "any", false, false, false, 25), "html", null, true);
  114. yield "%)";
  115. }
  116. yield "</span>
  117. </div>
  118. <div class=\"sf-toolbar-info-piece\">
  119. <b>Cache writes</b>
  120. <span>";
  121. // line 29
  122. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 29, $this->source); })()), "totals", [], "any", false, false, false, 29), "writes", [], "any", false, false, false, 29), "html", null, true);
  123. yield "</span>
  124. </div>
  125. ";
  126. yield from [];
  127. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  128. // line 32
  129. yield "
  130. ";
  131. // line 33
  132. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => (isset($context["profiler_url"]) || array_key_exists("profiler_url", $context) ? $context["profiler_url"] : (function () { throw new RuntimeError('Variable "profiler_url" does not exist.', 33, $this->source); })())]);
  133. yield "
  134. ";
  135. }
  136. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  137. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  138. yield from [];
  139. }
  140. // line 37
  141. /**
  142. * @return iterable<null|scalar|\Stringable>
  143. */
  144. public function block_menu(array $context, array $blocks = []): iterable
  145. {
  146. $macros = $this->macros;
  147. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  148. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
  149. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  150. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
  151. // line 38
  152. yield " <span class=\"label ";
  153. yield (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 38, $this->source); })()), "totals", [], "any", false, false, false, 38), "calls", [], "any", false, false, false, 38) == 0)) ? ("disabled") : (""));
  154. yield "\">
  155. <span class=\"icon\">
  156. ";
  157. // line 40
  158. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Icon/cache.svg");
  159. yield "
  160. </span>
  161. <strong>Cache</strong>
  162. </span>
  163. ";
  164. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  165. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  166. yield from [];
  167. }
  168. // line 46
  169. /**
  170. * @return iterable<null|scalar|\Stringable>
  171. */
  172. public function block_panel(array $context, array $blocks = []): iterable
  173. {
  174. $macros = $this->macros;
  175. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  176. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
  177. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  178. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
  179. // line 47
  180. yield " <h2>Cache</h2>
  181. ";
  182. // line 49
  183. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 49, $this->source); })()), "totals", [], "any", false, false, false, 49), "calls", [], "any", false, false, false, 49) == 0)) {
  184. // line 50
  185. yield " <div class=\"empty\">
  186. <p>No cache calls were made.</p>
  187. </div>
  188. ";
  189. } else {
  190. // line 54
  191. yield " <div class=\"metrics\">
  192. <div class=\"metric\">
  193. <span class=\"value\">";
  194. // line 56
  195. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 56, $this->source); })()), "totals", [], "any", false, false, false, 56), "calls", [], "any", false, false, false, 56), "html", null, true);
  196. yield "</span>
  197. <span class=\"label\">Total calls</span>
  198. </div>
  199. <div class=\"metric\">
  200. <span class=\"value\">";
  201. // line 60
  202. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::sprintf("%0.2f", (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 60, $this->source); })()), "totals", [], "any", false, false, false, 60), "time", [], "any", false, false, false, 60) * 1000)), "html", null, true);
  203. yield " <span class=\"unit\">ms</span></span>
  204. <span class=\"label\">Total time</span>
  205. </div>
  206. <div class=\"metric-divider\"></div>
  207. <div class=\"metric\">
  208. <span class=\"value\">";
  209. // line 65
  210. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 65, $this->source); })()), "totals", [], "any", false, false, false, 65), "reads", [], "any", false, false, false, 65), "html", null, true);
  211. yield "</span>
  212. <span class=\"label\">Total reads</span>
  213. </div>
  214. <div class=\"metric\">
  215. <span class=\"value\">";
  216. // line 69
  217. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 69, $this->source); })()), "totals", [], "any", false, false, false, 69), "writes", [], "any", false, false, false, 69), "html", null, true);
  218. yield "</span>
  219. <span class=\"label\">Total writes</span>
  220. </div>
  221. <div class=\"metric\">
  222. <span class=\"value\">";
  223. // line 73
  224. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 73, $this->source); })()), "totals", [], "any", false, false, false, 73), "deletes", [], "any", false, false, false, 73), "html", null, true);
  225. yield "</span>
  226. <span class=\"label\">Total deletes</span>
  227. </div>
  228. <div class=\"metric-divider\"></div>
  229. <div class=\"metric\">
  230. <span class=\"value\">";
  231. // line 78
  232. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 78, $this->source); })()), "totals", [], "any", false, false, false, 78), "hits", [], "any", false, false, false, 78), "html", null, true);
  233. yield "</span>
  234. <span class=\"label\">Total hits</span>
  235. </div>
  236. <div class=\"metric\">
  237. <span class=\"value\">";
  238. // line 82
  239. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 82, $this->source); })()), "totals", [], "any", false, false, false, 82), "misses", [], "any", false, false, false, 82), "html", null, true);
  240. yield "</span>
  241. <span class=\"label\">Total misses</span>
  242. </div>
  243. <div class=\"metric\">
  244. <span class=\"value\">
  245. ";
  246. // line 87
  247. yield (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["collector"] ?? null), "totals", [], "any", false, true, false, 87), "hit_read_ratio", [], "any", true, true, false, 87) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 87, $this->source); })()), "totals", [], "any", false, false, false, 87), "hit_read_ratio", [], "any", false, false, false, 87)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 87, $this->source); })()), "totals", [], "any", false, false, false, 87), "hit_read_ratio", [], "any", false, false, false, 87), "html", null, true)) : (0));
  248. yield " <span class=\"unit\">%</span>
  249. </span>
  250. <span class=\"label\">Hits/reads</span>
  251. </div>
  252. </div>
  253. <h2>Pools</h2>
  254. <div class=\"sf-tabs\">
  255. ";
  256. // line 95
  257. $context['_parent'] = $context;
  258. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 95, $this->source); })()), "calls", [], "any", false, false, false, 95));
  259. foreach ($context['_seq'] as $context["name"] => $context["calls"]) {
  260. // line 96
  261. yield " <div class=\"tab ";
  262. yield (((Twig\Extension\CoreExtension::length($this->env->getCharset(), $context["calls"]) == 0)) ? ("disabled") : (""));
  263. yield "\">
  264. <h3 class=\"tab-title\">";
  265. // line 97
  266. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["name"], "html", null, true);
  267. yield " <span class=\"badge\">";
  268. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 97, $this->source); })()), "statistics", [], "any", false, false, false, 97), $context["name"], [], "array", false, false, false, 97), "calls", [], "any", false, false, false, 97), "html", null, true);
  269. yield "</span></h3>
  270. <div class=\"tab-content\">
  271. ";
  272. // line 100
  273. if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), $context["calls"]) == 0)) {
  274. // line 101
  275. yield " <div class=\"empty\">
  276. <p>No calls were made for ";
  277. // line 102
  278. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["name"], "html", null, true);
  279. yield " pool.</p>
  280. </div>
  281. ";
  282. } else {
  283. // line 105
  284. yield " <h4>Metrics</h4>
  285. <div class=\"metrics\">
  286. ";
  287. // line 107
  288. $context['_parent'] = $context;
  289. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 107, $this->source); })()), "statistics", [], "any", false, false, false, 107), $context["name"], [], "array", false, false, false, 107));
  290. foreach ($context['_seq'] as $context["key"] => $context["value"]) {
  291. // line 108
  292. yield " <div class=\"metric\">
  293. <span class=\"value\">
  294. ";
  295. // line 110
  296. if (($context["key"] == "time")) {
  297. // line 111
  298. yield " ";
  299. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::sprintf("%0.2f", (1000 * $context["value"])), "html", null, true);
  300. yield " <span class=\"unit\">ms</span>
  301. ";
  302. } elseif (( // line 112
  303. $context["key"] == "hit_read_ratio")) {
  304. // line 113
  305. yield " ";
  306. yield (((true && !(null === $context["value"]))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["value"], "html", null, true)) : (0));
  307. yield " <span class=\"unit\">%</span>
  308. ";
  309. } else {
  310. // line 115
  311. yield " ";
  312. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["value"], "html", null, true);
  313. yield "
  314. ";
  315. }
  316. // line 117
  317. yield " </span>
  318. <span class=\"label\">";
  319. // line 118
  320. yield ((($context["key"] == "hit_read_ratio")) ? ("Hits/reads") : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), $context["key"]), "html", null, true)));
  321. yield "</span>
  322. </div>
  323. ";
  324. // line 120
  325. if ((($context["key"] == "time") || ($context["key"] == "deletes"))) {
  326. // line 121
  327. yield " <div class=\"metric-divider\"></div>
  328. ";
  329. }
  330. // line 123
  331. yield " ";
  332. }
  333. $_parent = $context['_parent'];
  334. unset($context['_seq'], $context['key'], $context['value'], $context['_parent']);
  335. $context = array_intersect_key($context, $_parent) + $_parent;
  336. // line 124
  337. yield " </div>
  338. <h4>Calls</h4>
  339. <table>
  340. <thead>
  341. <tr>
  342. <th>#</th>
  343. <th>Time</th>
  344. <th>Call</th>
  345. <th>Hit</th>
  346. </tr>
  347. </thead>
  348. <tbody>
  349. ";
  350. // line 137
  351. $context['_parent'] = $context;
  352. $context['_seq'] = CoreExtension::ensureTraversable($context["calls"]);
  353. $context['loop'] = [
  354. 'parent' => $context['_parent'],
  355. 'index0' => 0,
  356. 'index' => 1,
  357. 'first' => true,
  358. ];
  359. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  360. $length = count($context['_seq']);
  361. $context['loop']['revindex0'] = $length - 1;
  362. $context['loop']['revindex'] = $length;
  363. $context['loop']['length'] = $length;
  364. $context['loop']['last'] = 1 === $length;
  365. }
  366. foreach ($context['_seq'] as $context["_key"] => $context["call"]) {
  367. // line 138
  368. yield " <tr>
  369. <td class=\"font-normal text-small text-muted nowrap\">";
  370. // line 139
  371. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 139), "html", null, true);
  372. yield "</td>
  373. <td class=\"nowrap\">";
  374. // line 140
  375. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::sprintf("%0.2f", ((CoreExtension::getAttribute($this->env, $this->source, $context["call"], "end", [], "any", false, false, false, 140) - CoreExtension::getAttribute($this->env, $this->source, $context["call"], "start", [], "any", false, false, false, 140)) * 1000)), "html", null, true);
  376. yield " ms</td>
  377. <td class=\"nowrap\">";
  378. // line 141
  379. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["call"], "name", [], "any", false, false, false, 141), "html", null, true);
  380. yield "()</td>
  381. <td>";
  382. // line 142
  383. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["call"], "value", [], "any", false, false, false, 142), "result", [], "any", false, false, false, 142), 2);
  384. yield "</td>
  385. </tr>
  386. ";
  387. ++$context['loop']['index0'];
  388. ++$context['loop']['index'];
  389. $context['loop']['first'] = false;
  390. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  391. --$context['loop']['revindex0'];
  392. --$context['loop']['revindex'];
  393. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  394. }
  395. }
  396. $_parent = $context['_parent'];
  397. unset($context['_seq'], $context['_key'], $context['call'], $context['_parent'], $context['loop']);
  398. $context = array_intersect_key($context, $_parent) + $_parent;
  399. // line 145
  400. yield " </tbody>
  401. </table>
  402. ";
  403. }
  404. // line 148
  405. yield " </div>
  406. </div>
  407. ";
  408. }
  409. $_parent = $context['_parent'];
  410. unset($context['_seq'], $context['name'], $context['calls'], $context['_parent']);
  411. $context = array_intersect_key($context, $_parent) + $_parent;
  412. // line 151
  413. yield " </div>
  414. ";
  415. }
  416. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  417. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  418. yield from [];
  419. }
  420. /**
  421. * @codeCoverageIgnore
  422. */
  423. public function getTemplateName(): string
  424. {
  425. return "@WebProfiler/Collector/cache.html.twig";
  426. }
  427. /**
  428. * @codeCoverageIgnore
  429. */
  430. public function isTraitable(): bool
  431. {
  432. return false;
  433. }
  434. /**
  435. * @codeCoverageIgnore
  436. */
  437. public function getDebugInfo(): array
  438. {
  439. return array ( 447 => 151, 439 => 148, 434 => 145, 417 => 142, 413 => 141, 409 => 140, 405 => 139, 402 => 138, 385 => 137, 370 => 124, 364 => 123, 360 => 121, 358 => 120, 353 => 118, 350 => 117, 344 => 115, 338 => 113, 336 => 112, 331 => 111, 329 => 110, 325 => 108, 321 => 107, 317 => 105, 311 => 102, 308 => 101, 306 => 100, 298 => 97, 293 => 96, 289 => 95, 278 => 87, 270 => 82, 263 => 78, 255 => 73, 248 => 69, 241 => 65, 233 => 60, 226 => 56, 222 => 54, 216 => 50, 214 => 49, 210 => 47, 197 => 46, 181 => 40, 175 => 38, 162 => 37, 148 => 33, 145 => 32, 138 => 29, 124 => 25, 117 => 21, 110 => 17, 106 => 15, 103 => 14, 95 => 10, 89 => 7, 84 => 6, 81 => 5, 78 => 4, 65 => 3, 42 => 1,);
  440. }
  441. public function getSourceContext(): Source
  442. {
  443. return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
  444. {% block toolbar %}
  445. {% if collector.totals.calls > 0 %}
  446. {% set icon %}
  447. {{ include('@WebProfiler/Icon/cache.svg') }}
  448. <span class=\"sf-toolbar-value\">{{ collector.totals.calls }}</span>
  449. <span class=\"sf-toolbar-info-piece-additional-detail\">
  450. <span class=\"sf-toolbar-label\">in</span>
  451. <span class=\"sf-toolbar-value\">{{ '%0.2f'|format(collector.totals.time * 1000) }}</span>
  452. <span class=\"sf-toolbar-label\">ms</span>
  453. </span>
  454. {% endset %}
  455. {% set text %}
  456. <div class=\"sf-toolbar-info-piece\">
  457. <b>Cache Calls</b>
  458. <span>{{ collector.totals.calls }}</span>
  459. </div>
  460. <div class=\"sf-toolbar-info-piece\">
  461. <b>Total time</b>
  462. <span>{{ '%0.2f'|format(collector.totals.time * 1000) }} ms</span>
  463. </div>
  464. <div class=\"sf-toolbar-info-piece\">
  465. <b>Cache hits</b>
  466. <span>{{ collector.totals.hits }} / {{ collector.totals.reads }}{% if collector.totals.hit_read_ratio is not null %} ({{ collector.totals.hit_read_ratio }}%){% endif %}</span>
  467. </div>
  468. <div class=\"sf-toolbar-info-piece\">
  469. <b>Cache writes</b>
  470. <span>{{ collector.totals.writes }}</span>
  471. </div>
  472. {% endset %}
  473. {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }}
  474. {% endif %}
  475. {% endblock %}
  476. {% block menu %}
  477. <span class=\"label {{ collector.totals.calls == 0 ? 'disabled' }}\">
  478. <span class=\"icon\">
  479. {{ include('@WebProfiler/Icon/cache.svg') }}
  480. </span>
  481. <strong>Cache</strong>
  482. </span>
  483. {% endblock %}
  484. {% block panel %}
  485. <h2>Cache</h2>
  486. {% if collector.totals.calls == 0 %}
  487. <div class=\"empty\">
  488. <p>No cache calls were made.</p>
  489. </div>
  490. {% else %}
  491. <div class=\"metrics\">
  492. <div class=\"metric\">
  493. <span class=\"value\">{{ collector.totals.calls }}</span>
  494. <span class=\"label\">Total calls</span>
  495. </div>
  496. <div class=\"metric\">
  497. <span class=\"value\">{{ '%0.2f'|format(collector.totals.time * 1000) }} <span class=\"unit\">ms</span></span>
  498. <span class=\"label\">Total time</span>
  499. </div>
  500. <div class=\"metric-divider\"></div>
  501. <div class=\"metric\">
  502. <span class=\"value\">{{ collector.totals.reads }}</span>
  503. <span class=\"label\">Total reads</span>
  504. </div>
  505. <div class=\"metric\">
  506. <span class=\"value\">{{ collector.totals.writes }}</span>
  507. <span class=\"label\">Total writes</span>
  508. </div>
  509. <div class=\"metric\">
  510. <span class=\"value\">{{ collector.totals.deletes }}</span>
  511. <span class=\"label\">Total deletes</span>
  512. </div>
  513. <div class=\"metric-divider\"></div>
  514. <div class=\"metric\">
  515. <span class=\"value\">{{ collector.totals.hits }}</span>
  516. <span class=\"label\">Total hits</span>
  517. </div>
  518. <div class=\"metric\">
  519. <span class=\"value\">{{ collector.totals.misses }}</span>
  520. <span class=\"label\">Total misses</span>
  521. </div>
  522. <div class=\"metric\">
  523. <span class=\"value\">
  524. {{ collector.totals.hit_read_ratio ?? 0 }} <span class=\"unit\">%</span>
  525. </span>
  526. <span class=\"label\">Hits/reads</span>
  527. </div>
  528. </div>
  529. <h2>Pools</h2>
  530. <div class=\"sf-tabs\">
  531. {% for name, calls in collector.calls %}
  532. <div class=\"tab {{ calls|length == 0 ? 'disabled' }}\">
  533. <h3 class=\"tab-title\">{{ name }} <span class=\"badge\">{{ collector.statistics[name].calls }}</span></h3>
  534. <div class=\"tab-content\">
  535. {% if calls|length == 0 %}
  536. <div class=\"empty\">
  537. <p>No calls were made for {{ name }} pool.</p>
  538. </div>
  539. {% else %}
  540. <h4>Metrics</h4>
  541. <div class=\"metrics\">
  542. {% for key, value in collector.statistics[name] %}
  543. <div class=\"metric\">
  544. <span class=\"value\">
  545. {% if key == 'time' %}
  546. {{ '%0.2f'|format(1000 * value) }} <span class=\"unit\">ms</span>
  547. {% elseif key == 'hit_read_ratio' %}
  548. {{ value ?? 0 }} <span class=\"unit\">%</span>
  549. {% else %}
  550. {{ value }}
  551. {% endif %}
  552. </span>
  553. <span class=\"label\">{{ key == 'hit_read_ratio' ? 'Hits/reads' : key|capitalize }}</span>
  554. </div>
  555. {% if key == 'time' or key == 'deletes' %}
  556. <div class=\"metric-divider\"></div>
  557. {% endif %}
  558. {% endfor %}
  559. </div>
  560. <h4>Calls</h4>
  561. <table>
  562. <thead>
  563. <tr>
  564. <th>#</th>
  565. <th>Time</th>
  566. <th>Call</th>
  567. <th>Hit</th>
  568. </tr>
  569. </thead>
  570. <tbody>
  571. {% for call in calls %}
  572. <tr>
  573. <td class=\"font-normal text-small text-muted nowrap\">{{ loop.index }}</td>
  574. <td class=\"nowrap\">{{ '%0.2f'|format((call.end - call.start) * 1000) }} ms</td>
  575. <td class=\"nowrap\">{{ call.name }}()</td>
  576. <td>{{ profiler_dump(call.value.result, maxDepth=2) }}</td>
  577. </tr>
  578. {% endfor %}
  579. </tbody>
  580. </table>
  581. {% endif %}
  582. </div>
  583. </div>
  584. {% endfor %}
  585. </div>
  586. {% endif %}
  587. {% endblock %}
  588. ", "@WebProfiler/Collector/cache.html.twig", "/Volumes/madi/opt/madi/www/geopos_proj/vendor/symfony/web-profiler-bundle/Resources/views/Collector/cache.html.twig");
  589. }
  590. }