Oolite 1.91.0.7644-241112-7f5034b
|
import "OOJSConsole.h"
import "OODebugMonitor.h"
#include <stdint.h>
import "OOJSEngineTimeManagement.h"
import "OOJSScript.h"
import "OOJSVector.h"
import "OOJSEntity.h"
import "OOJSCall.h"
import "OOLoggingExtended.h"
import "OOConstToString.h"
import "OOOpenGLExtensionManager.h"
import "OODebugFlags.h"
import "OOProfilingStopwatch.h"
import "ResourceManager.h"
Go to the source code of this file.
Classes | |
category | Entity(OODebugInspector) |
Macros | |
#define | DEBUG_FLAG_DECL(x) |
#define | DEBUG_FLAG_CASE(x) |
#define | LONG_TIME (1e7) |
Functions | |
NSString * | OOPlatformDescription (void) |
static JSBool | ConsoleGetProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static JSBool | ConsoleSetProperty (JSContext *context, JSObject *this, jsid propID, JSBool strict, jsval *value) |
static void | ConsoleFinalize (JSContext *context, JSObject *this) |
static JSBool | ConsoleConsoleMessage (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ConsoleClearConsole (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ConsoleScriptStack (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ConsoleInspectEntity (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ConsoleIsExecutableJavaScript (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ConsoleDisplayMessagesInClass (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ConsoleSetDisplayMessagesInClass (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ConsoleWriteLogMarker (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ConsoleWriteMemoryStats (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ConsoleWriteJSMemoryStats (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ConsoleGarbageCollect (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ConsoleProfile (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ConsoleGetProfile (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ConsoleTrace (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ConsoleSettingsDeleteProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static JSBool | ConsoleSettingsGetProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static JSBool | ConsoleSettingsSetProperty (JSContext *context, JSObject *this, jsid propID, JSBool strict, jsval *value) |
static JSBool | PerformProfiling (JSContext *context, NSString *nominalFunction, uintN argc, jsval *argv, jsval *rval, BOOL trace, OOTimeProfile **profile) |
static void | InitOOJSConsole (JSContext *context, JSObject *global) |
void | OOJSConsoleDestroy (void) |
JSObject * | DebugMonitorToJSConsole (JSContext *context, OODebugMonitor *monitor) |
static BOOL | DoWeDefineAllDebugFlags (enum OODebugFlags flags) GCC_ATTR((unused)) |
Variables | |
static JSObject * | sConsolePrototype = NULL |
static JSObject * | sConsoleSettingsPrototype = NULL |
static JSClass | sConsoleClass |
static JSPropertySpec | sConsoleProperties [] |
static JSFunctionSpec | sConsoleMethods [] |
static JSClass | sConsoleSettingsClass |
#define DEBUG_FLAG_CASE | ( | x | ) |
Referenced by ConsoleGetProperty().
#define DEBUG_FLAG_DECL | ( | x | ) |
#define LONG_TIME (1e7) |
Referenced by Entity(OODebugInspector)::inspect.
anonymous enum |
Definition at line 120 of file OOJSConsole.m.
|
static |
Definition at line 693 of file OOJSConsole.m.
References nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, OOJS_THIS, OOJSNativeObjectFromJSObject(), and OOJSReportError().
|
static |
Definition at line 631 of file OOJSConsole.m.
References nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, OOJS_THIS, OOJSNativeObjectOfClassFromJSObject(), OOJSPauseTimeLimiter(), OOJSReportError(), OOJSReportWarning(), OOJSResumeTimeLimiter(), and OOStringFromJSValue().
|
static |
Definition at line 826 of file OOJSConsole.m.
References nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOLogWillDisplayMessagesInClass(), and OOStringFromJSValue().
|
static |
Definition at line 518 of file OOJSConsole.m.
References nil, OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT_VOID.
|
static |
Definition at line 901 of file OOJSConsole.m.
References OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, and OOJS_RETURN_OBJECT.
|
static |
Definition at line 1024 of file OOJSConsole.m.
References EXPECT_NOT, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_SET_RVAL, OOJSIsProfiling(), OOJSReportError(), OOJSValueFromNativeObject(), and PerformProfiling().
|
static |
Definition at line 308 of file OOJSConsole.m.
References DEBUG_BOUNDING_BOXES, DEBUG_COLLISIONS, DEBUG_DOCKING, DEBUG_DRAW_NORMALS, DEBUG_FLAG_CASE, DEBUG_LINKED_LISTS, DEBUG_MISC, DEBUG_NO_DUST, DEBUG_NO_SHADER_FALLBACK, DEBUG_OCTREE_DRAW, DEBUG_OCTREE_LOGGING, DEBUG_SHADER_VALIDATION, gDebugFlags, kConsole_debugFlags, kConsole_detailLevel, kConsole_displayFPS, kConsole_dumpStackForErrors, kConsole_dumpStackForWarnings, kConsole_glFixedFunctionTextureUnitCount, kConsole_glFragmentShaderTextureUnitCount, kConsole_glRendererString, kConsole_glVendorString, kConsole_ignoreDroppedPackets, kConsole_maximumDetailLevel, kConsole_pedanticMode, kConsole_platformDescription, kConsole_showErrorLocations, OOOpenGLExtensionManager::maximumDetailLevel, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSValueFromBOOL(), OOJSValueFromNativeObject(), OOPlatformDescription(), sConsoleProperties, OOOpenGLExtensionManager::sharedManager, and UNIVERSE.
|
static |
Definition at line 725 of file OOJSConsole.m.
References Entity::inspect, Entity(OODebugInspector)::inspect, JSValueToEntity(), nil, OOJS_ARGV, OOJS_BEGIN_FULL_NATIVE, OOJS_END_FULL_NATIVE, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, and OOJS_RETURN_VOID.
|
static |
Definition at line 797 of file OOJSConsole.m.
References OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOJSPauseTimeLimiter(), OOJSResumeTimeLimiter(), and OOStringFromJSValue().
|
static |
Definition at line 997 of file OOJSConsole.m.
References EXPECT_NOT, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_SET_RVAL, OOJSIsProfiling(), OOJSReportError(), OOJSValueFromNativeObject(), and PerformProfiling().
|
static |
Definition at line 714 of file OOJSConsole.m.
References OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, and OOJS_RETURN_OBJECT.
|
static |
Definition at line 840 of file OOJSConsole.m.
References nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, OOLogSetDisplayMessagesInClass(), and OOStringFromJSValue().
|
static |
Definition at line 403 of file OOJSConsole.m.
References gDebugFlags, kConsole_debugFlags, kConsole_detailLevel, kConsole_displayFPS, kConsole_dumpStackForErrors, kConsole_dumpStackForWarnings, kConsole_ignoreDroppedPackets, kConsole_pedanticMode, kConsole_showErrorLocations, OOJS_BEGIN_FULL_NATIVE, OOJS_END_FULL_NATIVE, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOStringFromJSValue(), sConsoleProperties, OOJavaScriptEngine::setDumpStackForErrors:, OOJavaScriptEngine::setDumpStackForWarnings:, OOJavaScriptEngine::setShowErrorLocations:, OODebugMonitor::setTCPIgnoresDroppedPackets:, OODebugMonitor::sharedDebugMonitor, and OOJavaScriptEngine::sharedEngine.
|
static |
Definition at line 529 of file OOJSConsole.m.
References nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSNativeObjectFromJSObject(), OOJSReportError(), and OOStringFromJSString().
|
static |
Definition at line 554 of file OOJSConsole.m.
References nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSNativeObjectFromJSObject(), OOJSReportError(), and OOStringFromJSString().
|
static |
Definition at line 583 of file OOJSConsole.m.
References nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSNativeObjectFromJSObject(), OOJSNativeObjectFromJSValue(), OOJSPauseTimeLimiter(), OOJSReportError(), OOJSReportWarning(), OOJSResumeTimeLimiter(), OOStringFromJSString(), and OOStringFromJSValue().
|
static |
Definition at line 1052 of file OOJSConsole.m.
References EXPECT_NOT, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_SET_RVAL, OOJSIsProfiling(), OOJSReportError(), and PerformProfiling().
|
static |
Definition at line 886 of file OOJSConsole.m.
References OODebugMonitor::dumpJSMemoryStatistics, OOJS_BEGIN_FULL_NATIVE, OOJS_END_FULL_NATIVE, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, and OODebugMonitor::sharedDebugMonitor.
|
static |
Definition at line 859 of file OOJSConsole.m.
References OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, and OOLogInsertMarker().
|
static |
Definition at line 871 of file OOJSConsole.m.
References OODebugMonitor::dumpMemoryStatistics, OOJS_BEGIN_FULL_NATIVE, OOJS_END_FULL_NATIVE, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, and OODebugMonitor::sharedDebugMonitor.
JSObject * DebugMonitorToJSConsole | ( | JSContext * | context, |
OODebugMonitor * | monitor ) |
Definition at line 255 of file OOJSConsole.m.
References InitOOJSConsole(), nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, sConsoleClass, sConsolePrototype, sConsoleSettingsClass, sConsoleSettingsPrototype, and OOJavaScriptEngine::sharedEngine.
|
static |
Definition at line 488 of file OOJSConsole.m.
References DEBUG_BOUNDING_BOXES, DEBUG_COLLISIONS, DEBUG_DOCKING, DEBUG_DRAW_NORMALS, DEBUG_LINKED_LISTS, DEBUG_MISC, DEBUG_NO_DUST, DEBUG_NO_SHADER_FALLBACK, DEBUG_OCTREE_DRAW, DEBUG_OCTREE_LOGGING, and DEBUG_SHADER_VALIDATION.
|
static |
Definition at line 239 of file OOJSConsole.m.
References OOJSBasicPrivateObjectConverter(), OOJSRegisterObjectConverter(), OOJSUnconstructableConstruct(), sConsoleClass, sConsoleMethods, sConsoleProperties, sConsolePrototype, sConsoleSettingsClass, and sConsoleSettingsPrototype.
Referenced by DebugMonitorToJSConsole().
void OOJSConsoleDestroy | ( | void | ) |
Definition at line 249 of file OOJSConsole.m.
References sConsolePrototype.
NSString * OOPlatformDescription | ( | void | ) |
Definition at line 185 of file OOLogHeader.m.
Referenced by ConsoleGetProperty().
|
static |
Definition at line 1078 of file OOJSConsole.m.
Referenced by ConsoleGetProfile(), ConsoleProfile(), and ConsoleTrace().
|
static |
Definition at line 103 of file OOJSConsole.m.
Referenced by DebugMonitorToJSConsole(), and InitOOJSConsole().
|
static |
Definition at line 192 of file OOJSConsole.m.
Referenced by InitOOJSConsole().
|
static |
Definition at line 155 of file OOJSConsole.m.
Referenced by ConsoleGetProperty(), ConsoleSetProperty(), and InitOOJSConsole().
|
static |
Definition at line 60 of file OOJSConsole.m.
Referenced by DebugMonitorToJSConsole(), InitOOJSConsole(), and OOJSConsoleDestroy().
|
static |
Definition at line 222 of file OOJSConsole.m.
Referenced by DebugMonitorToJSConsole(), and InitOOJSConsole().
|
static |
Definition at line 61 of file OOJSConsole.m.
Referenced by DebugMonitorToJSConsole(), and InitOOJSConsole().