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);