History

ability to see Stats in JavaScript + example script which outputs the stats to the console/logviewer

Thijs Wenker committed 11 years ago

Commit 6d4e4af1 parent ec9bf074 files · +85 −13Browse files

Showing the changes to interface/src/Application.cpp (1 of 4 files). Show all

Unified · Split

interface/src/Application.cpp+1−0
@@ -4063,6 +4063,7 @@ void Application::registerScriptEngineWithApplicationServices(ScriptEngine* scri · 4062 unmodified lines
40634063 scriptEngine->registerFunction("WebWindow", WebWindowClass::constructor, 1);
40644064
40654065 scriptEngine->registerGlobalObject("Menu", MenuScriptingInterface::getInstance());
4066+ scriptEngine->registerGlobalObject("Stats", Stats::getInstance());
40664067 scriptEngine->registerGlobalObject("Settings", SettingsScriptingInterface::getInstance());
40674068 scriptEngine->registerGlobalObject("AudioDevice", AudioDeviceScriptingInterface::getInstance());
40684069 scriptEngine->registerGlobalObject("AnimationCache", DependencyManager::get<AnimationCache>().data());