Ignore:
Timestamp:
May 22, 2008, 11:09:33 PM (17 years ago)
Author:
Adam Roben
Message:

Show "(Function object)" instead of "(JSInpectorCallbackWrapper object)" in profiles

Reviewed by Kevin McCullough.

  • profiler/Profiler.cpp: (KJS::createCallIdentifier): Use JSObject::className instead of getting the class name from the ClassInfo directly. JSObject subclasses can override className to provide a custom class name, and it seems like we should honor that.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/profiler/Profiler.cpp

    r34047 r34054  
    161161        return CallIdentifier(static_cast<InternalFunctionImp*>(calledFunction)->functionName().ustring(), "", 0);
    162162
    163     UString name = "(";
    164     name += calledFunction->classInfo()->className;
    165     name += " object)";
     163    UString name = "(" + calledFunction->className() + " object)";
    166164    return CallIdentifier(name, 0, 0);
    167165}
Note: See TracChangeset for help on using the changeset viewer.