API Documentation for: 1.0.1
Show:

ProfilerRenderer Class

Extends CanteenBase
Namespace: Canteen\Profiler

Rendering class used to render special step nodes.

Constructor

ProfilerRenderer

(
  • topNodes
  • showDepth
)

Parameters:

  • topNodes Array

    The collection of ProfilerNodes to render

  • showDepth Number

    The depth amount to show

Item Index

Methods

renderNode

(
  • node
  • [maxDepth=-1]
)
String private

Render a {@link ProfilerNode} step node and it's children recursively

Parameters:

  • node ProfilerNode

    The node to render

  • [maxDepth=-1] Int optional

    the maximum depth of the tree to traverse and render. -1 to traverse entire tree

Returns:

String:

The HTML markup rendering of the profiler node

renderNodeSQL

(
  • node
)
String private

Render all {@link ProfilerSQLNode} queries for the given node, and traverse it's child nodes to render their queries also.

Parameters:

Returns:

String:

The HTML markup rendering of the SQL node

Properties

_profiler

Profiler private

Instance of the Profiler

nodes

String

The rendered normal nodes

queryNodes

String

The rendered query nodes