mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Unit tests/fixes for PerformanceEntryObserver::get/clearEntries (#36384)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36384 ## Changelog: [Internal] - Adds more test coverage to PerformanceEntryObserver functionality related to buffering of the marks/measures, as well as making fixes for certain corner cases handled incorrectly (which are now covered by tests). Reviewed By: rubennorte Differential Revision: D43835928 fbshipit-source-id: fc8adbd6c2a2b6b201f1f14bdf51245268c5eabd
This commit is contained in:
committed by
Facebook GitHub Bot
parent
24dbb5df0a
commit
ea354d4e22
@@ -164,8 +164,9 @@ void PerformanceEntryReporter::clearEntries(
|
||||
marksCount_ = 0;
|
||||
marksRegistry_.clear();
|
||||
}
|
||||
} else if (
|
||||
entryType == PerformanceEntryType::MEASURE ||
|
||||
}
|
||||
|
||||
if (entryType == PerformanceEntryType::MEASURE ||
|
||||
entryType == PerformanceEntryType::UNDEFINED) {
|
||||
if (entryName != nullptr) {
|
||||
clearCircularBuffer(
|
||||
|
||||
Reference in New Issue
Block a user