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:
Ruslan Shestopalyuk
2022-12-02 17:23:58 -08:00
committed by Facebook GitHub Bot
parent 3905fd4bd7
commit 862a99c491
6 changed files with 12 additions and 5 deletions
@@ -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) {