|
126 | 126 | </h3>
|
127 | 127 | {% endif %}
|
128 | 128 |
|
129 |
| - {{ helper.display_timeline('timeline_' ~ token, collector.events, colors) }} |
| 129 | + {{ helper.display_timeline('timeline_' ~ token, colors) }} |
130 | 130 |
|
131 | 131 | {% if profile.children|length %}
|
132 | 132 | <p class="help">Note: sections with a striped background correspond to sub-requests.</p>
|
|
140 | 140 | <small>{{ events.__section__.duration }} ms</small>
|
141 | 141 | </h4>
|
142 | 142 |
|
143 |
| - {{ helper.display_timeline('timeline_' ~ child.token, events, colors) }} |
| 143 | + {{ helper.display_timeline('timeline_' ~ child.token, colors) }} |
144 | 144 | {% endfor %}
|
145 | 145 | {% endif %}
|
146 | 146 |
|
|
470 | 470 | var requests_data = {
|
471 | 471 | "max": {{ "%F"|format(collector.events.__section__.endtime) }},
|
472 | 472 | "requests": [
|
473 |
| -{{ helper.dump_request_data(token, profile, collector.events, collector.events.__section__.origin) }} |
| 473 | +{{ helper.dump_request_data(token, collector.events, collector.events.__section__.origin) }} |
474 | 474 |
|
475 | 475 | {% if profile.children|length %}
|
476 | 476 | ,
|
477 | 477 | {% for child in profile.children %}
|
478 |
| -{{ helper.dump_request_data(child.token, child, child.getcollector('time').events, collector.events.__section__.origin) }}{{ loop.last ? '' : ',' }} |
| 478 | +{{ helper.dump_request_data(child.token, child.getcollector('time').events, collector.events.__section__.origin) }}{{ loop.last ? '' : ',' }} |
479 | 479 | {% endfor %}
|
480 | 480 | {% endif %}
|
481 | 481 | ]
|
|
513 | 513 | //]]>{% endautoescape %}</script>
|
514 | 514 | {% endblock %}
|
515 | 515 |
|
516 |
| -{% macro dump_request_data(token, profile, events, origin) %} |
| 516 | +{% macro dump_request_data(token, events, origin) %} |
517 | 517 | {% autoescape 'js' %}
|
518 | 518 | {% from _self import dump_events %}
|
519 | 519 | {
|
|
549 | 549 | {% endautoescape %}
|
550 | 550 | {% endmacro %}
|
551 | 551 |
|
552 |
| -{% macro display_timeline(id, events, colors) %} |
| 552 | +{% macro display_timeline(id, colors) %} |
553 | 553 | <div class="sf-profiler-timeline">
|
554 | 554 | <div class="legends">
|
555 | 555 | {% for category, color in colors %}
|
|
0 commit comments