public class PerfDebugHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PERF_DEBUG |
| Constructor and Description |
|---|
PerfDebugHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
decreaseSDFLevel()
decrease the SDF nested level
|
static int |
getPerfDebugFlag()
Get perfDebug flag from request variable
|
static void |
increaseSDFLevel()
Increase the SDF nested level
|
static void |
renderPageTime(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rCtx,
javax.faces.component.UIComponent sdf,
javax.faces.context.ResponseWriter out)
Render page timing at the top of the page
|
static void |
renderSDFTiming(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rCtx,
ShowDetailFrame sdf,
javax.faces.context.ResponseWriter out,
long startTime)
Render performance timing for the SDF
|
static void |
setupPerfDebug(javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletRequest hreq)
Setup perfDebug flag to current user session based on query string
|
public static final java.lang.String PERF_DEBUG
public static void setupPerfDebug(javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletRequest hreq)
session - - current http sessionhreq - - http request objectpublic static int getPerfDebugFlag()
public static void increaseSDFLevel()
public static int decreaseSDFLevel()
public static void renderSDFTiming(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rCtx,
ShowDetailFrame sdf,
javax.faces.context.ResponseWriter out,
long startTime)
throws java.io.IOException
context - faces context FacesContextrCtx - rendering context RenderingContextsdf - - associated SDF componentout - - the response out object where the performance timing is written tostartTime - - the start time stamp of the renderingjava.io.IOExceptionpublic static void renderPageTime(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rCtx,
javax.faces.component.UIComponent sdf,
javax.faces.context.ResponseWriter out)
throws java.io.IOException
context - faces context FacesContextrCtx - rendering context RenderingContextsdf - - associated SDF componentout - - the response out object where the performance timing is written tojava.io.IOException