xhprof.html.twig in XHProf 8
{% block toolbar %}
{% set icon %}
{% if collector.runId %}
<a href="{{ url("xhprof.run", {run: collector.runId}) }}" title="{{ 'XHProf'|t }}">
<img width="20" height="28" alt="Asset"
src="data:image/png;base64,{{ collector.icon }}"/>
</a>
{% else %}
<span>
<img width="20" height="28" alt="Asset"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAcCAYAAAB2+A+pAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAflJREFUeNrsVs9LAlEQfqtbCwZWRMcN3aJDEAR5CAuUflyKulXXTkV/QUEQHYKwIohuEkGXID0FEYQiSXQJ9iJBddCoDoEKQmTEhto3MhtbVKcggh34dpg38+abmfeeKFUqFfEX4hB/JDaxTWwT/39imT7BYLBqnCSTv52/CxgFxgBfMBAIQc8BIZkDYkAGmIFTg04DQ7zuQ0F6tcBAgH5ffbzeyHtp3zxiotAtwAgT9QO1liKyTEr7dZN4hsiQOMzOKBLFYQsLgSmNjCHEnO+r6mqDYURg54BmS1wZSAAHwBFyebhg/X3UXDWNIcJJW7+b3Ww63SnR/B4edqDUyft709V853I9X7jdt65SaWGpo2OBuybCM26IhKbWKltymt2G0UnBXPQWi7Gwpgl/Pm/egQ12qTlFEan6+tyL07m52da2bDgcW5wnwlOjc51jm6Y6CEjWjgWT6k2GMZ2pq7vRisWe49NToZTL7wHPTqd4kuWzHY+nN68oE+upVHQgm6361trbl6HiIMuArJvOnbfRaLUvbzWEAqcTyeQdv68V+hDpY03Nhfv1dRfm4XBf3yX0Ep9V4YfbnOGccdb6d++YRhGC0VKSpOs9VRXbXu8iXa4xv38KvnXgimMLn7RVzLUJYJxfwTjbH+Il+x+ITWwT28T/jvhNgAEAnTCjXitoJO0AAAAASUVORK5CYII="/>
</span>
{% endif %}
{% endset %}
{% set text %}
{% if collector.runId %}
<div class="sf-toolbar-info-piece">
<b>{{ 'Run id'|t }}</b>
<span>{{ collector.runId }}</span>
</div>
{% if collector.showSummaryData %}
<div class="sf-toolbar-info-piece">
<b>{{ 'Calls'|t }}</b>
<span>{{ collector.calls }}</span>
</div>
<div class="sf-toolbar-info-piece">
<b>{{ 'Incl. Wall Time'|t }}</b>
<span>{{ collector.wt }}</span>
</div>
{% endif %}
{% endif %}
{% endset %}
<div class="sf-toolbar-block">
<div class="sf-toolbar-icon">{{ icon|default('') }}</div>
{% if collector.runId %}
<div class="sf-toolbar-info">{{ text|default('') }}</div>
{% endif %}
</div>
{% endblock %}
File
templates/Collector/xhprof.html.twig
View source
- {% block toolbar %}
- {% set icon %}
-
- {% if collector.runId %}
- <a href="{{ url("xhprof.run", {run: collector.runId}) }}" title="{{ 'XHProf'|t }}">
- <img width="20" height="28" alt="Asset"
- src="data:image/png;base64,{{ collector.icon }}"/>
- </a>
- {% else %}
- <span>
- <img width="20" height="28" alt="Asset"
- src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAcCAYAAAB2+A+pAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAflJREFUeNrsVs9LAlEQfqtbCwZWRMcN3aJDEAR5CAuUflyKulXXTkV/QUEQHYKwIohuEkGXID0FEYQiSXQJ9iJBddCoDoEKQmTEhto3MhtbVKcggh34dpg38+abmfeeKFUqFfEX4hB/JDaxTWwT/39imT7BYLBqnCSTv52/CxgFxgBfMBAIQc8BIZkDYkAGmIFTg04DQ7zuQ0F6tcBAgH5ffbzeyHtp3zxiotAtwAgT9QO1liKyTEr7dZN4hsiQOMzOKBLFYQsLgSmNjCHEnO+r6mqDYURg54BmS1wZSAAHwBFyebhg/X3UXDWNIcJJW7+b3Ww63SnR/B4edqDUyft709V853I9X7jdt65SaWGpo2OBuybCM26IhKbWKltymt2G0UnBXPQWi7Gwpgl/Pm/egQ12qTlFEan6+tyL07m52da2bDgcW5wnwlOjc51jm6Y6CEjWjgWT6k2GMZ2pq7vRisWe49NToZTL7wHPTqd4kuWzHY+nN68oE+upVHQgm6361trbl6HiIMuArJvOnbfRaLUvbzWEAqcTyeQdv68V+hDpY03Nhfv1dRfm4XBf3yX0Ep9V4YfbnOGccdb6d++YRhGC0VKSpOs9VRXbXu8iXa4xv38KvnXgimMLn7RVzLUJYJxfwTjbH+Il+x+ITWwT28T/jvhNgAEAnTCjXitoJO0AAAAASUVORK5CYII="/>
- </span>
- {% endif %}
-
- {% endset %}
- {% set text %}
- {% if collector.runId %}
- <div class="sf-toolbar-info-piece">
- <b>{{ 'Run id'|t }}</b>
- <span>{{ collector.runId }}</span>
- </div>
- {% if collector.showSummaryData %}
- <div class="sf-toolbar-info-piece">
- <b>{{ 'Calls'|t }}</b>
- <span>{{ collector.calls }}</span>
- </div>
- <div class="sf-toolbar-info-piece">
- <b>{{ 'Incl. Wall Time'|t }}</b>
- <span>{{ collector.wt }}</span>
- </div>
- {% endif %}
- {% endif %}
- {% endset %}
-
- <div class="sf-toolbar-block">
- <div class="sf-toolbar-icon">{{ icon|default('') }}</div>
-
- {% if collector.runId %}
- <div class="sf-toolbar-info">{{ text|default('') }}</div>
- {% endif %}
- </div>
- {% endblock %}