Grouping Within Templates
You can use util:profiler to break down profiling output within templates as follows:
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="/WEB-INF/escenic-util.tld" prefix="util" %> ...[1]... <util:profiler fragment="navigation"> ...[2]... <util:profiler fragment="switch1"> ...[3]... </util:profiler> ...[4]... <util:profiler fragment="switch2"> ...[5]... </util:profiler> ...[6]... </util:profiler> ...[7]...
If the example is called /wireframe/default.jsp
,
then this will give the following entries in your profiling output:
- /wireframe/default.jsp
-
containing output for code blocks [1] and [7]
- /wireframe/default.jsp
[navigation]
-
containing output for code blocks [2], [4] and [6]
- /wireframe/default.jsp
[switch1]
-
containing output for code block [3]
- /wireframe/default.jsp
[switch2]
-
containing output for code block [5]