Oolite 1.91.0.7645-241119-222d325
|
Go to the source code of this file.
Classes | |
class | OOTimeProfile |
class | OOTimeProfileEntry |
Macros | |
#define | OOJSStartTimeLimiter() |
#define | OOJSStartTimeLimiterWithTimeLimit(limit) |
#define | OOJSStopTimeLimiter() |
#define | kOOJSLongTimeLimit (5.0) |
Functions | |
void | OOJSStartTimeLimiterWithTimeLimit_ (OOTimeDelta limit, const char *file, unsigned line) |
void | OOJSStopTimeLimiter_ (const char *file, unsigned line) |
void | OOJSBeginProfiling (BOOL trace) |
OOTimeProfile * | OOJSEndProfiling (void) |
BOOL | OOJSIsProfiling (void) |
OOHighResTimeValue | OOJSCopyTimeLimiterNominalStartTime (void) |
void | OOJSResetTimeLimiter (void) |
OOTimeDelta | OOJSGetTimeLimiterLimit (void) |
void | OOJSSetTimeLimiterLimit (OOTimeDelta limit) |
void | OOJSTimeManagementInit (OOJavaScriptEngine *engine, JSRuntime *runtime) |
#define kOOJSLongTimeLimit (5.0) |
Definition at line 63 of file OOJSEngineTimeManagement.h.
#define OOJSStartTimeLimiter | ( | ) |
Definition at line 50 of file OOJSEngineTimeManagement.h.
Referenced by JSFunctionPredicate(), and OOStringFromDeciCredits().
#define OOJSStartTimeLimiterWithTimeLimit | ( | limit | ) |
Definition at line 53 of file OOJSEngineTimeManagement.h.
Referenced by OOJSFrameCallbacksInvoke().
#define OOJSStopTimeLimiter | ( | ) |
Definition at line 54 of file OOJSEngineTimeManagement.h.
Referenced by JSFunctionPredicate(), OOJSFrameCallbacksInvoke(), and OOStringFromDeciCredits().
void OOJSBeginProfiling | ( | BOOL | trace | ) |
Definition at line 311 of file OOJSEngineTimeManagement.m.
References OOGetHighResTime, OOJSGetTimeLimiterLimit(), OOLog, OOLogIndent(), sProfileInfo, sProfilerEntryTimeLimit, sProfilerOverhead, sProfilerStartTime, sProfilerTotalJavaScriptTime, sProfilerTotalNativeTime, sProfiling, and sTracing.
Referenced by Entity(OODebugInspector)::inspect.
OOHighResTimeValue OOJSCopyTimeLimiterNominalStartTime | ( | void | ) |
OOTimeProfile * OOJSEndProfiling | ( | void | ) |
Definition at line 333 of file OOJSEngineTimeManagement.m.
References OODisposeHighResTime, OOGetHighResTime, OOJSGetTimeLimiterLimit(), OOJSPauseTimeLimiter(), OOJSResumeTimeLimiter(), OOLog, OOLogOutdent(), OOTimeProfile::setExtensionTime:, OOTimeProfile::setNativeTime:, OOTimeProfile::setProfileEntries:, OOTimeProfile::setProfilerOverhead:, OOTimeProfile::setTotalTime:, sProfileInfo, sProfilerStartTime, sProfileStack, sProfiling, and sTracing.
Referenced by Entity(OODebugInspector)::inspect.
OOTimeDelta OOJSGetTimeLimiterLimit | ( | void | ) |
Definition at line 173 of file OOJSEngineTimeManagement.m.
References sLimiterTimeLimit.
Referenced by Entity(OODebugInspector)::inspect, OOJSBeginProfiling(), and OOJSEndProfiling().
BOOL OOJSIsProfiling | ( | void | ) |
Definition at line 376 of file OOJSEngineTimeManagement.m.
References sProfiling.
Referenced by ConsoleGetProfile(), ConsoleProfile(), and ConsoleTrace().
void OOJSResetTimeLimiter | ( | void | ) |
Definition at line 164 of file OOJSEngineTimeManagement.m.
References OODisposeHighResTime, OOGetHighResTime, sLimiterStart, and sStop.
Referenced by Entity(OODebugInspector)::inspect.
void OOJSSetTimeLimiterLimit | ( | OOTimeDelta | limit | ) |
Definition at line 179 of file OOJSEngineTimeManagement.m.
References sLimiterTimeLimit.
Referenced by Entity(OODebugInspector)::inspect.
void OOJSStartTimeLimiterWithTimeLimit_ | ( | OOTimeDelta | limit, |
const char * | file, | ||
unsigned | line ) |
Definition at line 82 of file OOJSEngineTimeManagement.m.
References OODisposeHighResTime, OOGetHighResTime, OOJS_TIME_LIMIT, OOLog, sLastStartedFile, sLastStartedLine, sLimiterPauseDepth, sLimiterStart, sLimiterStartDepth, and sLimiterTimeLimit.
void OOJSStopTimeLimiter_ | ( | const char * | file, |
unsigned | line ) |
Definition at line 108 of file OOJSEngineTimeManagement.m.
References OOLog, OOLogAbbreviatedFileName(), sLastStartedFile, sLastStartedLine, sLastStoppedFile, sLastStoppedLine, sLimiterStartDepth, and sLimiterTimeLimit.
void OOJSTimeManagementInit | ( | OOJavaScriptEngine * | engine, |
JSRuntime * | runtime ) |
Definition at line 254 of file OOJSEngineTimeManagement.m.
References ContextCallback().