Ignore:
Timestamp:
May 9, 2008, 1:18:08 PM (17 years ago)
Author:
[email protected]
Message:

2008-05-09 Kevin McCullough <[email protected]>

Reviewed by Tim.

-<rdar://problem/5770054> JavaScript profiler (10928)
-Add Profile class so that all profiles can be stored and retrieved by
the WebInspector when that time comes.

  • JavaScriptCore.exp: Export the new function signatures.
  • JavaScriptCore.xcodeproj/project.pbxproj: Add the new files to the project
  • profiler/Profile.cpp: Added. This class represents a single run of the profiler. (KJS::Profile::Profile): (KJS::Profile::willExecute): (KJS::Profile::didExecute): (KJS::Profile::printDataInspectorStyle): (KJS::functionNameCountPairComparator): (KJS::Profile::printDataSampleStyle):
  • profiler/Profile.h: Added. Ditto (KJS::Profile::stopProfiling):
  • profiler/Profiler.cpp: Now the profiler keeps track of many profiles but only runs one at a time. (KJS::Profiler::startProfiling): (KJS::Profiler::stopProfiling): (KJS::Profiler::willExecute): (KJS::Profiler::didExecute): (KJS::Profiler::printDataInspectorStyle): (KJS::Profiler::printDataSampleStyle):
  • profiler/Profiler.h: Ditto. (KJS::Profiler::~Profiler): (KJS::Profiler::allProfiles): (KJS::Profiler::clearProfiles):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/JavaScriptCore.exp

    r32807 r33007  
    126126__ZN3KJS8jsStringEPNS_9ExecStateERKNS_7UStringE
    127127__ZN3KJS8Profiler13stopProfilingEv
    128 __ZN3KJS8Profiler14startProfilingEj
     128__ZN3KJS8Profiler14startProfilingEjRKNS_7UStringE
    129129__ZN3KJS8Profiler8profilerEv
    130130__ZN3KJSeqERKNS_7UStringEPKc
     
    203203__ZNK3KJS8JSObject9classNameEv
    204204__ZNK3KJS8JSObject9toBooleanEPNS_9ExecStateE
    205 __ZNK3KJS8Profiler20printDataSampleStyleEv
    206 __ZNK3KJS8Profiler23printDataInspectorStyleEv
     205__ZNK3KJS8Profiler23printDataInspectorStyleEj
    207206__ZNK3KJS9ExecState19lexicalGlobalObjectEv
    208207__ZNK3KJS9HashTable11createTableEv
Note: See TracChangeset for help on using the changeset viewer.