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

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

Issue 2962353002: Add probe for V8.Complie (Closed)
Patch Set: fix tests 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..ee23e805f6f53f74a841cd59e95c8ef6fd2baad2 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) bug 738495: intentionally leave out as we need to verify
+ // monotonical time is reasonable in overhead.
+}
+
+void PerformanceMonitor::Did(const probe::V8Compile& probe) {
+ // Todo(maxlg) bug 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_;

Powered by Google App Engine
This is Rietveld 408576698