Unreviewed build fix when using content extensions performance reporting.
authorachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Apr 2015 18:42:52 +0000 (18:42 +0000)
committerachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Apr 2015 18:42:52 +0000 (18:42 +0000)
* contentextensions/ContentExtensionCompiler.cpp:
(WebCore::ContentExtensions::compileRuleList):
Time how long it takes to build the DFAs.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182244 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/contentextensions/ContentExtensionCompiler.cpp

index bf233ee..afb9107 100644 (file)
@@ -1,5 +1,13 @@
 2015-04-01  Alex Christensen  <achristensen@webkit.org>
 
+        Unreviewed build fix when using content extensions performance reporting.
+
+        * contentextensions/ContentExtensionCompiler.cpp:
+        (WebCore::ContentExtensions::compileRuleList):
+        Time how long it takes to build the DFAs.
+
+2015-04-01  Alex Christensen  <achristensen@webkit.org>
+
         Progress towards CMake on Windows and Mac.
         https://bugs.webkit.org/show_bug.cgi?id=143293
 
index c79d5b4..142bc64 100644 (file)
@@ -178,7 +178,7 @@ std::error_code compileRuleList(ContentExtensionCompilationClient& client, const
 
 #if CONTENT_EXTENSIONS_PERFORMANCE_REPORTING
     double nfaBuildTimeEnd = monotonicallyIncreasingTime();
-    dataLogF("    Time spent building the NFA: %f\n", (nfaBuildTimeEnd - nfaBuildTimeStart));
+    dataLogF("    Time spent building the NFAs: %f\n", (nfaBuildTimeEnd - nfaBuildTimeStart));
 #endif
 
 #if CONTENT_EXTENSIONS_STATE_MACHINE_DEBUGGING
@@ -211,6 +211,11 @@ std::error_code compileRuleList(ContentExtensionCompilationClient& client, const
         compiler.compile();
     }
 
+#if CONTENT_EXTENSIONS_PERFORMANCE_REPORTING
+    double dfaBuildTimeEnd = monotonicallyIncreasingTime();
+    dataLogF("    Time spent building and compiling the DFAs: %f\n", (dfaBuildTimeEnd - dfaBuildTimeStart));
+#endif
+
     client.writeBytecode(WTF::move(bytecode));
     client.writeActions(WTF::move(actions));