com.caucho.quercus.env
Class ProfileEnv

java.lang.Object
  extended by com.caucho.quercus.env.Env
      extended by com.caucho.quercus.env.ProfileEnv

public class ProfileEnv
extends Env

Profiling


Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.quercus.env.Env
Env.OVERLOADING_TYPES
 
Field Summary
 
Fields inherited from class com.caucho.quercus.env.Env
_anonymousFunMap, _classDef, _const, _fun, _qClass, _quercus, B_COMPILE_ERROR, B_COMPILE_WARNING, B_CORE_ERROR, B_CORE_WARNING, B_ERROR, B_LAST, B_NOTICE, B_PARSE, B_RECOVERABLE_ERROR, B_STRICT, B_USER_ERROR, B_USER_NOTICE, B_USER_WARNING, B_WARNING, DEFAULT_QUERY_SEPARATOR_MAP, E_ALL, E_COMPILE_ERROR, E_COMPILE_WARNING, E_CORE_ERROR, E_CORE_WARNING, E_DEFAULT, E_ERROR, E_NOTICE, E_PARSE, E_RECOVERABLE_ERROR, E_STRICT, E_USER_ERROR, E_USER_NOTICE, E_USER_WARNING, E_WARNING, EMPTY_VALUE
 
Constructor Summary
ProfileEnv(ProQuercus quercus)
           
ProfileEnv(ProResinQuercus quercus, QuercusPage page, WriteStream out, HttpServletRequest request, HttpServletResponse response)
           
 
Method Summary
protected  ProfileReport createProfileReport()
           
 Value executePage(QuercusPage page)
          Evaluates the top-level code in profiling mode
 Value executePageTop(QuercusPage page)
          Evaluates the top-level code in profiling mode
protected  void generateProfileReport()
           
protected  AbstractFunction[] getDefaultFunctionMap()
          Initialization - return the profile functions
 ProResinQuercus getProQuercus()
          Returns the pro quercue
protected  QuercusPage pageInit(QuercusPage page)
          Initialize the page, loading any functions and classes
 void popProfile(long nanos)
           
 void pushProfile(int id)
           
 
Methods inherited from class com.caucho.quercus.env.Env
addAutoloadFunction, addClass, addClass, addClassDef, addCleanup, addConstant, addConstant, addConstant, addFunction, addFunctionFromPage, addInitializedClass, addObjectCleanup, addRemovePath, addShutdown, addWildcardImport, allocateRegexpState, call, call, call, call, call, call, call, callRef, callRef, callRef, callRef, callRef, callRef, callRef, cast, checkTimeout, checkTypeHint, clearClassCache, close, closeDuplex, comma, comma, comma, comma, comma, comma, comma, comma, comma, comma, compileError, compileWarning, createAnonymousFunction, createBinaryBuilder, createBinaryBuilder, createBinaryBuilder, createBinaryBuilder, createBinaryString, createErrorException, createErrorException, createErrorException, createException, createException, createIncompleteObject, createLargeBinaryBuilder, createObject, createSession, createStaticName, createString, createString, createString, createString, createString, createStringBuilder, createUnicodeBuilder, dbgId, decodeValue, deprecatedArgument, destroySession, die, die, error, error, error, error, error, error, error, error, evalCode, execute, executeTop, exit, exit, expectBoolean, expectNumeric, expectString, fillPost, findAbstractClass, findClass, findClass, findClass, findClassDef, findDatabase, findFunction, findFunction, findFunction, findFunctionId, findMethod, first, first, first, first, first, first, first, first, first, first, first, flush, freeRegexpState, generateId, generateSessionId, getAutoloadFunctions, getByteToChar, getCallDepth, getCallingClass, getCallingClass, getCallingClassName, getClass, getClass, getConfigVar, getConnection, getConnectionStatus, getConstant, getConstant, getConstant, getContentType, getCookies, getCurrent, getCurrentTime, getDatabase, getDataSource, getDate, getDeclaredClasses, getDefaultStreamContext, getDefaultTimeZone, getDefinedConstants, getDefinedFunctions, getDuplex, getEmptyString, getEnv, getEnvVar, getEnvVar, getErrorMask, getExactTime, getExceptionHandler, getExtensionFuncs, getFunction, getFunction, getFunctionArgs, getFunctionLocation, getGlobalEnv, getGlobalEnvVar, getGlobalEnvVar, getGlobalRaw, getGlobalRef, getGlobalScriptContextRef, getGlobalSpecialRef, getGlobalValue, getGlobalValue, getGlobalVar, getGlobalVar, getGlobalVar, getGmtDate, getGzStream, getHttpInputEncoding, getIncludedFiles, getIni, getIniBoolean, getIniBytes, getIniLong, getIniMap, getIniString, getInputData, getInstance, getJavaClassDefinition, getJavaClassDefinition, getJavaSession, getLoadedExtensions, getLocalDate, getLocaleInfo, getLocalValue, getLocalVar, getLocation, getLocationImpl, getLogger, getMicroTime, getModuleContext, getOriginalOut, getOut, getOutputBuffer, getOutputEncoding, getPwd, getQuercus, getQueryString, getRealPath, getRef, getRef, getRequest, getResponse, getRuntimeEncoding, getRuntimeEncodingFactory, getScriptEncoding, getSelfDirectory, getSelfPath, getServletContext, getSession, getSessionCallback, getShellPwd, getSourceLine, getSourceLine, getSpecialValue, getStackTrace, getStartTime, getStaticValue, getStaticVar, getTempDirectory, getThis, getUploadDirectory, getValue, getValue, getVar, getVar, getVar, getWorkDir, ifNull, importJavaClass, importPhpClass, include, include, includeOnce, includeOnce, invalidArgument, isAllowUrlFopen, isAllowUrlInclude, isDefined, isExtensionLoaded, isGlobalEnv, isInitializedClass, isStrict, isUnicodeSemantics, lookup, lookupInclude, lookupPwd, normalizePath, notice, notice, nullAsFalse, parse, peekArgs, peekCall, peekCallThis, popCall, popEnv, popFieldGet, popOutputBuffer, print, print, print, print, print, print, print, println, println, println, println, pushCall, pushEnv, pushFieldGet, pushOutputBuffer, putQualifiedImport, removeAutoloadFunction, removeCleanup, removeConstant, removeSpecialValue, require, requireOnce, resetTimeout, restoreErrorHandler, restoreExceptionHandler, restoreFunctionArgs, restoreIncludePath, restoreState, saveState, sessionWriteClose, setArgs, setCallingClass, setDefaultTimeZone, setDefaultTimeZone, setEnvRef, setErrorHandler, setErrorMask, setExceptionHandler, setFieldVar, setFunctionArgs, setFunctionArgsNoCopy, setGlobalValue, setGlobalValue, setGzStream, setIncludePath, setIni, setIni, setInputData, setLocalVar, setLocation, setPwd, setRef, setRef, setRuntimeEncoding, setScriptContext, setScriptGlobal, setSelfPath, setSession, setSessionCallback, setSpecialValue, setStaticRef, setThis, setTimeLimit, setValue, setValue, setVar, setVar, start, startDuplex, strict, stub, suppress, toString, toValue, toValue, toVar, unsetGlobalVar, unsetLocalVar, unsetVar, updateFunction, updateTimeout, warning, warning, warning, warning, warning, warning, wrapJava, wrapJava, wrapJava, wrapJava, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProfileEnv

public ProfileEnv(ProResinQuercus quercus,
                  QuercusPage page,
                  WriteStream out,
                  HttpServletRequest request,
                  HttpServletResponse response)

ProfileEnv

public ProfileEnv(ProQuercus quercus)
Method Detail

getProQuercus

public ProResinQuercus getProQuercus()
Returns the pro quercue


getDefaultFunctionMap

protected AbstractFunction[] getDefaultFunctionMap()
Initialization - return the profile functions

Overrides:
getDefaultFunctionMap in class Env

executePageTop

public Value executePageTop(QuercusPage page)
Evaluates the top-level code in profiling mode

Overrides:
executePageTop in class Env
Returns:
the result

executePage

public Value executePage(QuercusPage page)
Evaluates the top-level code in profiling mode

Overrides:
executePage in class Env
Returns:
the result

pageInit

protected QuercusPage pageInit(QuercusPage page)
Initialize the page, loading any functions and classes

Overrides:
pageInit in class Env

pushProfile

public void pushProfile(int id)
Overrides:
pushProfile in class Env

popProfile

public void popProfile(long nanos)
Overrides:
popProfile in class Env

generateProfileReport

protected void generateProfileReport()

createProfileReport

protected ProfileReport createProfileReport()