{%- import _self as helper -%}

Event Dispatcher

Triggered Listeners {{ collector.getNumListeners('called') }}
{%- if 0 == collector.getNumListeners('called') -%}

No triggered listeners.

{%- else -%} {{- helper.render_table(collector.triggeredListeners) -}} {%- endif -%}
Not Called Listeners {{ collector.getNumListeners('not_called') }}
{{ helper.render_table_not_triggered_listeners(collector.notTriggeredListeners) }}
{%- macro render_table_not_triggered_listeners(notCalledListenersPerEvent) -%} {%- for eventName, listeners in notCalledListenersPerEvent -%}

{{ eventName }}

{%- for listener in listeners -%} {%- endfor -%}
Listener
{{ dump(listener) }}
{%- endfor -%} {%- endmacro -%} {%- macro render_table(listeners) -%} {%- for eventName, callsPerlistener in listeners -%}

{{ eventName }}

{%- for listener, callsPerClass in callsPerlistener -%} {%- for className, callsInfo in callsPerClass -%} {%- endfor -%} {%- endfor -%}
Class Calls Total duration (ms)
{{ dump(listener) }}
  {{ className }} {{ callsInfo.calls }} {{ callsInfo.duration ? (callsInfo.duration * 1000)|number_format(4) : '' }}
{%- endfor -%} {%- endmacro -%}