Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Unified Diff: third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp

Issue 2962353002: Add probe for V8.Complie (Closed)
Patch Set: update Todos Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp
diff --git a/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp b/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp
index c7f566cc921fd2bf72efc9cdd353a561516261b2..e61e0cac94187f27794e5dbbcafb48293587b883 100644
--- a/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp
+++ b/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp
@@ -3,7 +3,6 @@
// found in the LICENSE file.
#include "core/frame/PerformanceMonitor.h"
-
#include "bindings/core/v8/ScheduledAction.h"
#include "bindings/core/v8/ScriptEventListener.h"
#include "bindings/core/v8/SourceLocation.h"
@@ -15,7 +14,9 @@
#include "core/frame/LocalFrame.h"
#include "core/html/parser/HTMLDocumentParser.h"
#include "core/probe/CoreProbes.h"
+#include "platform/Histogram.h"
#include "platform/wtf/CurrentTime.h"
+#include "platform/wtf/Time.h"
#include "public/platform/Platform.h"
namespace blink {
@@ -202,6 +203,16 @@ void PerformanceMonitor::Did(const probe::CallFunction& probe) {
SourceLocation::FromFunction(probe.function));
}
+void PerformanceMonitor::Will(const probe::V8Compile& probe) {
+ // Todo(maxlg): https://crbug.com/738495 Intentionally leave out as we need to
+ // verify monotonical time is reasonable in overhead.
+}
+
+void PerformanceMonitor::Did(const probe::V8Compile& probe) {
+ // Todo(maxlg): https://crbug.com/738495 Intentionally leave out as we need to
+ // verify monotonical time is reasonable in overhead.
+}
+
void PerformanceMonitor::Will(const probe::UserCallback& probe) {
++user_callback_depth_;
« no previous file with comments | « third_party/WebKit/Source/core/frame/PerformanceMonitor.h ('k') | third_party/WebKit/Source/core/probe/CoreProbes.json5 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698