Skip to content
  • timothy@apple.com's avatar
    Fixes a couple performance issues with the profiler. Also fixes · aeb5dd75
    timothy@apple.com authored
    a regression where some nodes wouldn't be added to the tree.
    
    Reviewed by Kevin McCullough.
    
    * profiler/ProfileNode.cpp:
    (KJS::ProfileNode::addChild): Compare callIdentifier instead
    of functionName.
    * profiler/ProfileNode.h:
    (CallIdentifier.operator==): Compare the CallIdentifiers in
    an order that fails sooner for non-matches.
    (CallIdentifier.callIdentifier): Return the CallIdentifier by
    reference to prevent making a new copy each time.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33952 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    aeb5dd75