Ignore:
Timestamp:
Apr 29, 2008, 11:09:04 AM (17 years ago)
Author:
[email protected]
Message:

2008-04-29 Kevin McCullough <[email protected]>

Reviewed by Geoff.

-<rdar://problem/5770054> JavaScript profiler (10928)
-Keep call count.

  • profiler/FunctionCallProfile.cpp: (KJS::FunctionCallProfile::FunctionCallProfile): (KJS::FunctionCallProfile::didExecute): Implements call count and fixed a bug where a stackIndex of 0 was causing the assert to be hit. (KJS::FunctionCallProfile::stopProfiling): (KJS::FunctionCallProfile::endAndRecordCall):
  • profiler/FunctionCallProfile.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/profiler/FunctionCallProfile.h

    r32354 r32693  
    5959
    6060    private:
     61        void endAndRecordCall();
     62   
    6163        UString m_functionName;
    6264        double m_timeSum;
    6365        double m_startTime;
     66        unsigned m_numberOfCalls;
    6467
    6568        Deque<FunctionCallProfile*> m_children;
Note: See TracChangeset for help on using the changeset viewer.