Changeset 34858 in webkit for trunk/JavaScriptCore/VM/Machine.cpp


Ignore:
Timestamp:
Jun 28, 2008, 3:21:20 PM (17 years ago)
Author:
Darin Adler
Message:

2008-06-28 Darin Adler <Darin Adler>

Reviewed by Oliver.

  • pcre/pcre_compile.cpp: (jsRegExpCompile): Compile in the string if REGEXP_HISTOGRAM is on.
  • pcre/pcre_exec.cpp: (jsRegExpExecute): Add hook to time execution. (Histogram::~Histogram): Print a sorted list of what took time. (Histogram::add): Accumulate records of what took time. (HistogramTimeLogger::~HistogramTimeLogger): Hook that calls Histogram::add at the right moment and creates the global histogram object.
  • pcre/pcre_internal.h: Define REGEXP_HISTOGRAM.
  • pcre/pcre_tables.cpp: Added missing include of "config.h". Not needed any more, but an omissions an earlier version of this patch detected.
  • pcre/pcre_ucp_searchfuncs.cpp: Ditto.
  • pcre/pcre_xclass.cpp: Ditto.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/Machine.cpp

    r34854 r34858  
    888888// It doesn't matter what "current time" is here, just as long as
    889889// it's possible to measure the time difference correctly.
    890 // In an ideal world this would be in DateMath or some such, but unfortunately
    891 // that's a regression.
     890// In an ideal world this would just be getCurrentUTCTimeWithMicroseconds
     891// from DateMath.h, but unfortunately there's a slowdown if we use tha.
    892892static inline unsigned getCurrentTime()
    893893{
Note: See TracChangeset for help on using the changeset viewer.