Ignore:
Timestamp:
Apr 18, 2008, 3:41:49 PM (17 years ago)
Author:
[email protected]
Message:

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

Reviewed by Sam.

-<rdar://problem/5770054> JavaScript profiler (10928)

  • Use Deque instead of Vector since the profiler uses prepend a lot and deque is faster at that.
  • profiler/FunctionCallProfile.h: (KJS::FunctionCallProfile::milliSecs): Corrected the name to match its output.
  • wtf/Deque.h: (WTF::deleteAllValues):
File:
1 edited

Legend:

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

    r32228 r32234  
    3131
    3232#include <kjs/ustring.h>
     33#include <wtf/Deque.h>
    3334
    3435namespace KJS {
     
    3637    class FunctionCallProfile;
    3738
    38     typedef Vector<FunctionCallProfile*>::const_iterator StackIterator;
     39    typedef Deque<FunctionCallProfile*>::const_iterator StackIterator;
    3940
    4041    class FunctionCallProfile {
     
    5051
    5152        UString functionName() const { return m_functionName; }
    52         double microSecs() const { return m_timeSum; }
     53        double milliSecs() const { return m_timeSum; }
    5354
    5455        void printDataInspectorStyle(int indentLevel) const;
     
    6061        double m_startTime;
    6162
    62         Vector<FunctionCallProfile*> m_children;
     63        Deque<FunctionCallProfile*> m_children;
    6364    };
    6465
Note: See TracChangeset for help on using the changeset viewer.