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

Unified Diff: third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.h

Issue 2078723002: Add HTML parser UMA for rewinds and chunk queue statistics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/html/parser/ParsedChunkQueue.h
diff --git a/third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.h b/third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.h
index 3c9c9a7cbc560e5c1165dfd469361766485b54aa..0c01f4a8e0c149f373141441c35bf478f847b9a8 100644
--- a/third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.h
+++ b/third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.h
@@ -37,12 +37,17 @@ public:
void clear();
void takeAll(Vector<OwnPtr<HTMLDocumentParser::ParsedChunk>>&);
+ size_t peakPendingChunkCount();
+ size_t peakPendingTokenCount();
private:
ParsedChunkQueue();
Mutex m_mutex;
Vector<OwnPtr<HTMLDocumentParser::ParsedChunk>> m_pendingChunks;
+ size_t m_peakPendingChunkCount = 0;
+ size_t m_peakPendingTokenCount = 0;
+ size_t m_pendingTokenCount = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698