You are here

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
  1. {% block toolbar %}
  2. {% set icon %}
  3. {% if collector.runId %}
  4. <a href="{{ url("xhprof.run", {run: collector.runId}) }}" title="{{ 'XHProf'|t }}">
  5. <img width="20" height="28" alt="Asset"
  6. src="data:image/png;base64,{{ collector.icon }}"/>
  7. </a>
  8. {% else %}
  9. <span>
  10. <img width="20" height="28" alt="Asset"
  11. 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="/>
  12. </span>
  13. {% endif %}
  14. {% endset %}
  15. {% set text %}
  16. {% if collector.runId %}
  17. <div class="sf-toolbar-info-piece">
  18. <b>{{ 'Run id'|t }}</b>
  19. <span>{{ collector.runId }}</span>
  20. </div>
  21. {% if collector.showSummaryData %}
  22. <div class="sf-toolbar-info-piece">
  23. <b>{{ 'Calls'|t }}</b>
  24. <span>{{ collector.calls }}</span>
  25. </div>
  26. <div class="sf-toolbar-info-piece">
  27. <b>{{ 'Incl. Wall Time'|t }}</b>
  28. <span>{{ collector.wt }}</span>
  29. </div>
  30. {% endif %}
  31. {% endif %}
  32. {% endset %}
  33. <div class="sf-toolbar-block">
  34. <div class="sf-toolbar-icon">{{ icon|default('') }}</div>
  35. {% if collector.runId %}
  36. <div class="sf-toolbar-info">{{ text|default('') }}</div>
  37. {% endif %}
  38. </div>
  39. {% endblock %}