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:
Ykkrosh
2010-08-02 19:23:58 +00:00
parent 95047013d0
commit b292a32505
13 changed files with 237 additions and 48 deletions
+2 -1
View File
@@ -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);