Ignore:
Timestamp:
Jul 2, 2008, 3:50:17 PM (17 years ago)
Author:
[email protected]
Message:

2008-07-02 Kevin McCullough <[email protected]>

Reviewed by Darin.

<rdar://problem/5951532> JSProfiler: Implement Bottom-Up view (19228)

  • Subclass TreeProfile as I prepare for a HeavyProfile to be comming later.
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • profiler/Profile.cpp: By default we create a TreeProfile. (KJS::Profile::create):
  • profiler/Profile.h: Changes to the Profile class to make it amenable to be inherited from. (KJS::Profile::~Profile):
  • profiler/TreeProfile.cpp: Added. (KJS::TreeProfile::create): (KJS::TreeProfile::TreeProfile): (KJS::TreeProfile::heavyProfile):
  • profiler/TreeProfile.h: Added. (KJS::TreeProfile::treeProfile):
File:
1 edited

Legend:

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

    r34957 r34960  
    2727#include "Profile.h"
    2828
    29 #include "ProfileNode.h"
    30 #include "JSGlobalObject.h"
    3129#include "ExecState.h"
    3230#include "JSFunction.h"
     31#include "JSGlobalObject.h"
     32#include "ProfileNode.h"
     33#include "TreeProfile.h"
    3334
    3435#include <stdio.h>
     
    4041PassRefPtr<Profile> Profile::create(const UString& title, ExecState* originatingGlobalExec, unsigned pageGroupIdentifier, ProfilerClient* client)
    4142{
    42     return adoptRef(new Profile(title, originatingGlobalExec, pageGroupIdentifier, client));
     43    return TreeProfile::create(title, originatingGlobalExec, pageGroupIdentifier, client);
    4344}
    4445
     
    5758}
    5859
     60Profile::~Profile()
     61{
     62}
     63
    5964void Profile::stopProfiling()
    6065{
Note: See TracChangeset for help on using the changeset viewer.