From 0cd128cfb30636ef08eb94429d54d17f2d94e0c2 Mon Sep 17 00:00:00 2001 From: twanvl Date: Thu, 11 Dec 2008 17:35:21 +0000 Subject: [PATCH] more detailed profiling of getMember git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1247 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/script/to_value.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/script/to_value.hpp b/src/script/to_value.hpp index e40b74ca..b0d64181 100644 --- a/src/script/to_value.hpp +++ b/src/script/to_value.hpp @@ -16,6 +16,9 @@ #include #include #include // we need the dtor of GeneratedImage +#if USE_SCRIPT_PROFILING + #include +#endif // ----------------------------------------------------------------------------- : Overloadable templates @@ -272,7 +275,7 @@ class ScriptObject : public ScriptValue { virtual ScriptValueP getMember(const String& name) const { #if USE_SCRIPT_PROFILING Timer t; - Profiler prof(t, _("get member")); + Profiler prof(t, (void*)typeid(T).raw_name(), _("get member of ") + type_name(*value)); #endif GetMember gm(name); gm.handle(*value);