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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h

Issue 1807193003: Show v8.parseOnBackground in DevTools Timeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/bindings/core/v8/ScriptStreamer.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h
index 251e58d8d84e5903d7882644edaf0b7373b91870..f6cef443e11845d424f04a9ccd719b64675b6703 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h
@@ -7,6 +7,7 @@
#include "core/CoreExport.h"
#include "platform/heap/Handle.h"
+#include "platform/weborigin/KURL.h"
#include "wtf/RefCounted.h"
#include <v8.h>
@@ -82,6 +83,8 @@ public:
v8::ScriptCompiler::StreamedSource::Encoding encoding() const { return m_encoding; }
+ const KURL& scriptURL() const { return m_scriptURL; }
caseq 2016/03/18 23:36:04 We only care for the string representation of URL,
horo 2016/03/23 07:06:05 Done.
+
static void setSmallScriptThresholdForTesting(size_t threshold)
{
s_smallScriptThreshold = threshold;
@@ -136,6 +139,9 @@ private:
// For recording metrics for different types of scripts separately.
Type m_scriptType;
+ // Keep the script URL for event tracing.
+ KURL m_scriptURL;
+
mutable Mutex m_mutex;
// Encoding of the streamed script. Saved for sanity checking purposes.

Powered by Google App Engine
This is Rietveld 408576698