mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Clean up uneeded "duration" parameter from the Performance.mark API (#36997)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36997 I've noticed that `Performance.mark`, for some reason, has been using an explicit `duration` parameter throughout, whereas it doesn't really make sense - neither from the web standard perspective, nor in general. Changelog: [Internal] Reviewed By: rubennorte Differential Revision: D45141978 fbshipit-source-id: ce3d149401249882f673c4bb6727eb1560469fa3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
244c9ff549
commit
dec8562494
@@ -28,9 +28,8 @@ NativePerformance::NativePerformance(std::shared_ptr<CallInvoker> jsInvoker)
|
||||
void NativePerformance::mark(
|
||||
jsi::Runtime &rt,
|
||||
std::string name,
|
||||
double startTime,
|
||||
double duration) {
|
||||
PerformanceEntryReporter::getInstance().mark(name, startTime, duration);
|
||||
double startTime) {
|
||||
PerformanceEntryReporter::getInstance().mark(name, startTime);
|
||||
}
|
||||
|
||||
void NativePerformance::measure(
|
||||
|
||||
Reference in New Issue
Block a user