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

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

Issue 2713553010: Migrate performance monitor to inspector instrumentation. (Closed)
Patch Set: Introduce progress monitor Created 3 years, 10 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.h
diff --git a/third_party/WebKit/Source/core/frame/PerformanceMonitor.h b/third_party/WebKit/Source/core/frame/PerformanceMonitor.h
index 46fba98c66d11963e44fc55f8d8940b858d545c2..30c1c85d724895afb073904a6ab8552fbe1a7c41 100644
--- a/third_party/WebKit/Source/core/frame/PerformanceMonitor.h
+++ b/third_party/WebKit/Source/core/frame/PerformanceMonitor.h
@@ -69,16 +69,6 @@ class CORE_EXPORT PerformanceMonitor final
DEFINE_INLINE_VIRTUAL_TRACE() {}
};
- // Instrumenting methods.
- static void willExecuteScript(ExecutionContext*);
- static void didExecuteScript(ExecutionContext*);
- static void willCallFunction(ExecutionContext*);
- static void didCallFunction(ExecutionContext*, v8::Local<v8::Function>);
- static void willUpdateLayout(Document*);
- static void didUpdateLayout(Document*);
- static void willRecalculateStyle(Document*);
- static void didRecalculateStyle(Document*);
- static void documentWriteFetchScript(Document*);
static void reportGenericViolation(ExecutionContext*,
Violation,
const String& text,
@@ -86,6 +76,17 @@ class CORE_EXPORT PerformanceMonitor final
std::unique_ptr<SourceLocation>);
static double threshold(ExecutionContext*, Violation);
+ // Instrumenting methods.
+ void willExecuteScript(ExecutionContext*);
+ void didExecuteScript();
+ void willCallFunction(ExecutionContext*);
+ void didCallFunction(ExecutionContext*, v8::Local<v8::Function>);
+ void willUpdateLayout();
+ void didUpdateLayout();
+ void willRecalculateStyle(Document*);
+ void didRecalculateStyle();
+ void documentWriteFetchScript(Document*);
+
// Direct API for core.
void subscribe(Violation, double threshold, Client*);
void unsubscribeAll(Client*);
@@ -105,14 +106,6 @@ class CORE_EXPORT PerformanceMonitor final
void updateInstrumentation();
- void alwaysWillExecuteScript(ExecutionContext*);
- void alwaysDidExecuteScript();
- void alwaysWillCallFunction(ExecutionContext*);
- void alwaysDidCallFunction(ExecutionContext*, v8::Local<v8::Function>);
- void willUpdateLayout();
- void didUpdateLayout();
- void willRecalculateStyle();
- void didRecalculateStyle();
void innerReportGenericViolation(ExecutionContext*,
Violation,
const String& text,
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698