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

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: Remove trace event 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 d65f2924be772dd3135915f50aa2c45a794ba5a6..b28e324bed4a1a07b416b2ce95dcec5464f55fc7 100644
--- a/third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.h
+++ b/third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.h
@@ -36,12 +36,17 @@ public:
void clear();
void takeAll(Vector<std::unique_ptr<HTMLDocumentParser::ParsedChunk>>&);
+ size_t peakPendingChunkCount();
+ size_t peakPendingTokenCount();
private:
ParsedChunkQueue();
Mutex m_mutex;
Vector<std::unique_ptr<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