mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-13 23:16:12 +00:00
Add JS memory usage to profiler.
Add dumpHeaps() console function for debugging JS memory usage. Increase default JS heap size. Make call-time profile table appear first when toggling. Remove some unused script functions. This was SVN commit r7842.
This commit is contained in:
@@ -50,7 +50,7 @@ public:
|
||||
* @param cx NULL if the object should create and manage its own context; otherwise
|
||||
* an existing context which it will share
|
||||
*/
|
||||
ScriptInterface(const char* nativeScopeName, JSContext* cx = NULL);
|
||||
ScriptInterface(const char* nativeScopeName, const char* debugName = "Unknown");
|
||||
|
||||
~ScriptInterface();
|
||||
|
||||
@@ -64,6 +64,7 @@ public:
|
||||
static void* GetCallbackData(JSContext* cx);
|
||||
|
||||
JSContext* GetContext() const;
|
||||
JSRuntime* GetRuntime() const;
|
||||
|
||||
void ReplaceNondeterministicFunctions(boost::rand48& rng);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user