mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Use NativePerformanceObserver.popPendingEntries instead of getPendingEntries
Summary: [Changelog][Internal] The name corresponds more precisely to what the method does. Reviewed By: christophpurrer Differential Revision: D41686205 fbshipit-source-id: 36c47b57fdeb757515cd14b890f38247f7fe8d02
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3905fd4bd7
commit
862a99c491
@@ -39,11 +39,16 @@ void NativePerformanceObserver::stopReporting(
|
||||
reporter_->stopReporting(stringToPerformanceEntryType(entryType));
|
||||
}
|
||||
|
||||
std::vector<RawPerformanceEntry> NativePerformanceObserver::getPendingEntries(
|
||||
std::vector<RawPerformanceEntry> NativePerformanceObserver::popPendingEntries(
|
||||
jsi::Runtime &rt) {
|
||||
return reporter_->popPendingEntries();
|
||||
}
|
||||
|
||||
std::vector<RawPerformanceEntry> NativePerformanceObserver::getPendingEntries(
|
||||
jsi::Runtime &rt) {
|
||||
return reporter_->getPendingEntries();
|
||||
}
|
||||
|
||||
void NativePerformanceObserver::setOnPerformanceEntryCallback(
|
||||
jsi::Runtime &rt,
|
||||
std::optional<AsyncCallback<>> callback) {
|
||||
|
||||
Reference in New Issue
Block a user