mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
more detailed profiling of getMember
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1247 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -16,6 +16,9 @@
|
|||||||
#include <util/error.hpp>
|
#include <util/error.hpp>
|
||||||
#include <util/io/get_member.hpp>
|
#include <util/io/get_member.hpp>
|
||||||
#include <gfx/generated_image.hpp> // we need the dtor of GeneratedImage
|
#include <gfx/generated_image.hpp> // we need the dtor of GeneratedImage
|
||||||
|
#if USE_SCRIPT_PROFILING
|
||||||
|
#include <typeinfo>
|
||||||
|
#endif
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Overloadable templates
|
// ----------------------------------------------------------------------------- : Overloadable templates
|
||||||
|
|
||||||
@@ -272,7 +275,7 @@ class ScriptObject : public ScriptValue {
|
|||||||
virtual ScriptValueP getMember(const String& name) const {
|
virtual ScriptValueP getMember(const String& name) const {
|
||||||
#if USE_SCRIPT_PROFILING
|
#if USE_SCRIPT_PROFILING
|
||||||
Timer t;
|
Timer t;
|
||||||
Profiler prof(t, _("get member"));
|
Profiler prof(t, (void*)typeid(T).raw_name(), _("get member of ") + type_name(*value));
|
||||||
#endif
|
#endif
|
||||||
GetMember gm(name);
|
GetMember gm(name);
|
||||||
gm.handle(*value);
|
gm.handle(*value);
|
||||||
|
|||||||
Reference in New Issue
Block a user