react-native-windows 0.82.0-preview.4 → 0.82.0-preview.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Animated/nodes/AnimatedValue.js +0 -8
- package/Libraries/BatchedBridge/BatchedBridge.js +1 -0
- package/Libraries/BatchedBridge/MessageQueue.js +1 -0
- package/Libraries/Components/Switch/Switch.js +1 -1
- package/Libraries/Components/Switch/Switch.windows.js +1 -1
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Libraries/Core/Timers/JSTimers.js +1 -0
- package/Libraries/Core/Timers/NativeTiming.js +1 -0
- package/Libraries/Core/Timers/immediateShim.js +1 -0
- package/Libraries/Core/setUpPerformance.js +3 -5
- package/Libraries/Interaction/PanResponder.js +6 -51
- package/Microsoft.ReactNative/Fabric/Composition/ParagraphComponentView.cpp +25 -4
- package/Microsoft.ReactNative/Fabric/Composition/ParagraphComponentView.h +5 -0
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/timing/primitives.h +12 -0
- package/PropertySheets/Generated/PackageVersion.g.props +2 -2
- package/Shared/Shared.vcxitems +1 -0
- package/codegen/NativePerformanceSpec.g.h +41 -35
- package/codegen/NativeReactNativeFeatureFlagsSpec.g.h +55 -49
- package/codegen/rnwcoreJSI-generated.cpp +12 -0
- package/codegen/rnwcoreJSI.h +18 -0
- package/index.js +6 -0
- package/index.windows.js +6 -0
- package/package.json +12 -11
- package/src/private/featureflags/ReactNativeFeatureFlags.js +6 -1
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +2 -1
- package/src/private/setup/{setUpPerformanceObserver.js → setUpPerformanceModern.js} +43 -18
- package/src/private/specs_DEPRECATED/components/SwitchNativeComponent.js +1 -0
- package/src/private/specs_DEPRECATED/modules/NativeTiming.js +1 -0
- package/src/private/webapis/performance/EventTiming.js +34 -15
- package/src/private/webapis/performance/LongTasks.js +35 -2
- package/src/private/webapis/performance/Performance.js +49 -13
- package/src/private/webapis/performance/PerformanceEntry.js +21 -8
- package/src/private/webapis/performance/PerformanceObserver.js +30 -1
- package/src/private/webapis/performance/ReactNativeStartupTiming.js +3 -24
- package/src/private/webapis/performance/ResourceTiming.js +29 -18
- package/src/private/webapis/performance/UserTiming.js +33 -28
- package/src/private/webapis/performance/internals/RawPerformanceEntry.js +3 -4
- package/src/private/webapis/performance/specs/NativePerformance.js +2 -0
|
@@ -18,7 +18,6 @@ import type {AnimatedNodeConfig} from './AnimatedNode';
|
|
|
18
18
|
import type AnimatedTracking from './AnimatedTracking';
|
|
19
19
|
|
|
20
20
|
import NativeAnimatedHelper from '../../../src/private/animated/NativeAnimatedHelper';
|
|
21
|
-
import InteractionManager from '../../Interaction/InteractionManager';
|
|
22
21
|
import AnimatedInterpolation from './AnimatedInterpolation';
|
|
23
22
|
import AnimatedWithChildren from './AnimatedWithChildren';
|
|
24
23
|
|
|
@@ -312,10 +311,6 @@ export default class AnimatedValue extends AnimatedWithChildren {
|
|
|
312
311
|
* See https://reactnative.dev/docs/animatedvalue#animate
|
|
313
312
|
*/
|
|
314
313
|
animate(animation: Animation, callback: ?EndCallback): void {
|
|
315
|
-
let handle = null;
|
|
316
|
-
if (animation.__isInteraction) {
|
|
317
|
-
handle = InteractionManager.createInteractionHandle();
|
|
318
|
-
}
|
|
319
314
|
const previousAnimation = this._animation;
|
|
320
315
|
this._animation && this._animation.stop();
|
|
321
316
|
this._animation = animation;
|
|
@@ -328,9 +323,6 @@ export default class AnimatedValue extends AnimatedWithChildren {
|
|
|
328
323
|
},
|
|
329
324
|
result => {
|
|
330
325
|
this._animation = null;
|
|
331
|
-
if (handle !== null) {
|
|
332
|
-
InteractionManager.clearInteractionHandle(handle);
|
|
333
|
-
}
|
|
334
326
|
callback && callback(result);
|
|
335
327
|
},
|
|
336
328
|
previousAnimation,
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
export default class ReactNativeVersion {
|
|
29
29
|
static major: number = 0;
|
|
30
30
|
static minor: number = 82;
|
|
31
|
-
static patch: number =
|
|
32
|
-
static prerelease: string | null =
|
|
31
|
+
static patch: number = 1;
|
|
32
|
+
static prerelease: string | null = null;
|
|
33
33
|
|
|
34
34
|
static getVersionString(): string {
|
|
35
35
|
return `${this.major}.${this.minor}.${this.patch}${this.prerelease != null ? `-${this.prerelease}` : ''}`;
|
|
@@ -4,19 +4,17 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @flow strict
|
|
7
|
+
* @flow strict-local
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
+
import setUpPerformanceModern from '../../src/private/setup/setUpPerformanceModern';
|
|
11
12
|
import NativePerformance from '../../src/private/webapis/performance/specs/NativePerformance';
|
|
12
13
|
|
|
13
14
|
// In case if the native implementation of the Performance API is available, use it,
|
|
14
15
|
// otherwise fall back to the legacy/default one, which only defines 'Performance.now()'
|
|
15
16
|
if (NativePerformance) {
|
|
16
|
-
|
|
17
|
-
require('../../src/private/webapis/performance/Performance').default;
|
|
18
|
-
// $FlowExpectedError[cannot-write]
|
|
19
|
-
global.performance = new Performance();
|
|
17
|
+
setUpPerformanceModern();
|
|
20
18
|
} else {
|
|
21
19
|
if (!global.performance) {
|
|
22
20
|
// $FlowExpectedError[cannot-write]
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
|
|
13
13
|
import type {GestureResponderEvent} from '../Types/CoreEventTypes';
|
|
14
14
|
|
|
15
|
-
const InteractionManager = require('./InteractionManager').default;
|
|
16
15
|
const TouchHistoryMath = require('./TouchHistoryMath').default;
|
|
17
16
|
|
|
18
17
|
const currentCentroidXOfTouchesChangedAfter =
|
|
@@ -31,9 +30,6 @@ const currentCentroidY = TouchHistoryMath.currentCentroidY;
|
|
|
31
30
|
* single-touch gestures resilient to extra touches, and can be used to
|
|
32
31
|
* recognize simple multi-touch gestures.
|
|
33
32
|
*
|
|
34
|
-
* By default, `PanResponder` holds an `InteractionManager` handle to block
|
|
35
|
-
* long-running JS events from interrupting active gestures.
|
|
36
|
-
*
|
|
37
33
|
* It provides a predictable wrapper of the responder handlers provided by the
|
|
38
34
|
* [gesture responder system](docs/gesture-responder-system.html).
|
|
39
35
|
* For each handler, it provides a new `gestureState` object alongside the
|
|
@@ -405,9 +401,6 @@ const PanResponder = {
|
|
|
405
401
|
getInteractionHandle: () => ?number,
|
|
406
402
|
panHandlers: GestureResponderHandlerMethods,
|
|
407
403
|
} {
|
|
408
|
-
const interactionState = {
|
|
409
|
-
handle: (null: ?number),
|
|
410
|
-
};
|
|
411
404
|
const gestureState: PanResponderGestureState = {
|
|
412
405
|
// Useful for debugging
|
|
413
406
|
stateID: Math.random(),
|
|
@@ -464,10 +457,6 @@ const PanResponder = {
|
|
|
464
457
|
},
|
|
465
458
|
|
|
466
459
|
onResponderGrant(event: GestureResponderEvent): boolean {
|
|
467
|
-
if (!interactionState.handle) {
|
|
468
|
-
interactionState.handle =
|
|
469
|
-
InteractionManager.createInteractionHandle();
|
|
470
|
-
}
|
|
471
460
|
gestureState.x0 = currentCentroidX(event.touchHistory);
|
|
472
461
|
gestureState.y0 = currentCentroidY(event.touchHistory);
|
|
473
462
|
gestureState.dx = 0;
|
|
@@ -482,21 +471,11 @@ const PanResponder = {
|
|
|
482
471
|
},
|
|
483
472
|
|
|
484
473
|
onResponderReject(event: GestureResponderEvent): void {
|
|
485
|
-
|
|
486
|
-
interactionState,
|
|
487
|
-
config.onPanResponderReject,
|
|
488
|
-
event,
|
|
489
|
-
gestureState,
|
|
490
|
-
);
|
|
474
|
+
config.onPanResponderReject?.call(undefined, event, gestureState);
|
|
491
475
|
},
|
|
492
476
|
|
|
493
477
|
onResponderRelease(event: GestureResponderEvent): void {
|
|
494
|
-
|
|
495
|
-
interactionState,
|
|
496
|
-
config.onPanResponderRelease,
|
|
497
|
-
event,
|
|
498
|
-
gestureState,
|
|
499
|
-
);
|
|
478
|
+
config.onPanResponderRelease?.call(undefined, event, gestureState);
|
|
500
479
|
PanResponder._initializeGestureState(gestureState);
|
|
501
480
|
},
|
|
502
481
|
|
|
@@ -529,21 +508,11 @@ const PanResponder = {
|
|
|
529
508
|
onResponderEnd(event: GestureResponderEvent): void {
|
|
530
509
|
const touchHistory = event.touchHistory;
|
|
531
510
|
gestureState.numberActiveTouches = touchHistory.numberActiveTouches;
|
|
532
|
-
|
|
533
|
-
interactionState,
|
|
534
|
-
config.onPanResponderEnd,
|
|
535
|
-
event,
|
|
536
|
-
gestureState,
|
|
537
|
-
);
|
|
511
|
+
config.onPanResponderEnd?.call(undefined, event, gestureState);
|
|
538
512
|
},
|
|
539
513
|
|
|
540
514
|
onResponderTerminate(event: GestureResponderEvent): void {
|
|
541
|
-
|
|
542
|
-
interactionState,
|
|
543
|
-
config.onPanResponderTerminate,
|
|
544
|
-
event,
|
|
545
|
-
gestureState,
|
|
546
|
-
);
|
|
515
|
+
config.onPanResponderTerminate?.call(undefined, event, gestureState);
|
|
547
516
|
PanResponder._initializeGestureState(gestureState);
|
|
548
517
|
},
|
|
549
518
|
|
|
@@ -556,27 +525,13 @@ const PanResponder = {
|
|
|
556
525
|
return {
|
|
557
526
|
panHandlers,
|
|
558
527
|
getInteractionHandle(): ?number {
|
|
559
|
-
|
|
528
|
+
// TODO: Deprecate and delete this method.
|
|
529
|
+
return null;
|
|
560
530
|
},
|
|
561
531
|
};
|
|
562
532
|
},
|
|
563
533
|
};
|
|
564
534
|
|
|
565
|
-
function clearInteractionHandle(
|
|
566
|
-
interactionState: {handle: ?number, ...},
|
|
567
|
-
callback: ?(ActiveCallback | PassiveCallback),
|
|
568
|
-
event: GestureResponderEvent,
|
|
569
|
-
gestureState: PanResponderGestureState,
|
|
570
|
-
) {
|
|
571
|
-
if (interactionState.handle) {
|
|
572
|
-
InteractionManager.clearInteractionHandle(interactionState.handle);
|
|
573
|
-
interactionState.handle = null;
|
|
574
|
-
}
|
|
575
|
-
if (callback) {
|
|
576
|
-
callback(event, gestureState);
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
|
|
580
535
|
export type PanResponderInstance = ReturnType<(typeof PanResponder)['create']>;
|
|
581
536
|
|
|
582
537
|
export default PanResponder;
|
|
@@ -171,6 +171,26 @@ void ParagraphComponentView::updateTextAlignment(
|
|
|
171
171
|
m_textLayout = nullptr;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
+
facebook::react::Tag ParagraphComponentView::hitTest(
|
|
175
|
+
facebook::react::Point pt,
|
|
176
|
+
facebook::react::Point &localPt,
|
|
177
|
+
bool ignorePointerEvents) const noexcept {
|
|
178
|
+
facebook::react::Point ptLocal{pt.x - m_layoutMetrics.frame.origin.x, pt.y - m_layoutMetrics.frame.origin.y};
|
|
179
|
+
const auto &props = paragraphProps();
|
|
180
|
+
const auto &vProps = *viewProps();
|
|
181
|
+
|
|
182
|
+
if (props.isSelectable && ptLocal.x >= 0 && ptLocal.x <= m_layoutMetrics.frame.size.width && ptLocal.y >= 0 &&
|
|
183
|
+
ptLocal.y <= m_layoutMetrics.frame.size.height) {
|
|
184
|
+
// claims if pointer events are enabled for this component
|
|
185
|
+
if (ignorePointerEvents || vProps.pointerEvents == facebook::react::PointerEventsMode::Auto ||
|
|
186
|
+
vProps.pointerEvents == facebook::react::PointerEventsMode::BoxOnly) {
|
|
187
|
+
localPt = ptLocal;
|
|
188
|
+
return Tag();
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
return Super::hitTest(pt, localPt, ignorePointerEvents);
|
|
192
|
+
}
|
|
193
|
+
|
|
174
194
|
bool ParagraphComponentView::IsTextSelectableAtPoint(facebook::react::Point pt) noexcept {
|
|
175
195
|
// paragraph-level selectable prop is enabled
|
|
176
196
|
const auto &props = paragraphProps();
|
|
@@ -543,7 +563,8 @@ void ParagraphComponentView::OnPointerPressed(
|
|
|
543
563
|
return;
|
|
544
564
|
}
|
|
545
565
|
|
|
546
|
-
|
|
566
|
+
// Use Tag() to get coordinates in component's local space
|
|
567
|
+
auto pp = args.GetCurrentPoint(static_cast<int32_t>(Tag()));
|
|
547
568
|
|
|
548
569
|
// Ignores right-click
|
|
549
570
|
if (pp.Properties().PointerUpdateKind() ==
|
|
@@ -554,8 +575,8 @@ void ParagraphComponentView::OnPointerPressed(
|
|
|
554
575
|
|
|
555
576
|
auto position = pp.Position();
|
|
556
577
|
|
|
557
|
-
|
|
558
|
-
|
|
578
|
+
// GetCurrentPoint(Tag()) returns position relative to component origin
|
|
579
|
+
facebook::react::Point localPt{position.X, position.Y};
|
|
559
580
|
|
|
560
581
|
std::optional<int32_t> charPosition = GetTextPositionAtPoint(localPt);
|
|
561
582
|
|
|
@@ -629,7 +650,7 @@ void ParagraphComponentView::OnPointerMoved(
|
|
|
629
650
|
void ParagraphComponentView::OnPointerReleased(
|
|
630
651
|
const winrt::Microsoft::ReactNative::Composition::Input::PointerRoutedEventArgs &args) noexcept {
|
|
631
652
|
// Check for right-click to show context menu
|
|
632
|
-
auto pp = args.GetCurrentPoint(
|
|
653
|
+
auto pp = args.GetCurrentPoint(static_cast<int32_t>(Tag()));
|
|
633
654
|
if (pp.Properties().PointerUpdateKind() ==
|
|
634
655
|
winrt::Microsoft::ReactNative::Composition::Input::PointerUpdateKind::RightButtonReleased) {
|
|
635
656
|
const auto &props = paragraphProps();
|
|
@@ -49,6 +49,11 @@ struct ParagraphComponentView : ParagraphComponentViewT<ParagraphComponentView,
|
|
|
49
49
|
static facebook::react::SharedViewProps defaultProps() noexcept;
|
|
50
50
|
const facebook::react::ParagraphProps ¶graphProps() const noexcept;
|
|
51
51
|
|
|
52
|
+
facebook::react::Tag hitTest(
|
|
53
|
+
facebook::react::Point pt,
|
|
54
|
+
facebook::react::Point &localPt,
|
|
55
|
+
bool ignorePointerEvents = false) const noexcept override;
|
|
56
|
+
|
|
52
57
|
// Returns true when text is selectable
|
|
53
58
|
bool focusable() const noexcept override;
|
|
54
59
|
|
|
@@ -201,6 +201,11 @@ class HighResTimeStamp {
|
|
|
201
201
|
return HighResTimeStamp(chronoNow());
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
+
static HighResDuration unsafeOriginFromUnixTimeStamp() noexcept {
|
|
205
|
+
static auto origin = computeUnsafeOriginFromUnixTimeStamp();
|
|
206
|
+
return origin;
|
|
207
|
+
}
|
|
208
|
+
|
|
204
209
|
static constexpr HighResTimeStamp min() noexcept {
|
|
205
210
|
return HighResTimeStamp(std::chrono::steady_clock::time_point::min());
|
|
206
211
|
}
|
|
@@ -285,6 +290,13 @@ class HighResTimeStamp {
|
|
|
285
290
|
|
|
286
291
|
std::chrono::steady_clock::time_point chronoTimePoint_;
|
|
287
292
|
|
|
293
|
+
static HighResDuration computeUnsafeOriginFromUnixTimeStamp() noexcept {
|
|
294
|
+
auto systemNow = std::chrono::system_clock::now();
|
|
295
|
+
auto steadyNow = std::chrono::steady_clock::now();
|
|
296
|
+
return HighResDuration(
|
|
297
|
+
systemNow.time_since_epoch() - steadyNow.time_since_epoch());
|
|
298
|
+
}
|
|
299
|
+
|
|
288
300
|
#ifdef REACT_NATIVE_DEBUG
|
|
289
301
|
static std::function<std::chrono::steady_clock::time_point()>&
|
|
290
302
|
getTimeStampProvider() {
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.82.0-preview.
|
|
13
|
+
<ReactNativeWindowsVersion>0.82.0-preview.5</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>82</ReactNativeWindowsMinor>
|
|
16
16
|
<ReactNativeWindowsPatch>0</ReactNativeWindowsPatch>
|
|
17
17
|
<ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
|
|
18
|
-
<ReactNativeWindowsCommitId>
|
|
18
|
+
<ReactNativeWindowsCommitId>9486be369921a08663e2b5227dda13cbc7ad5388</ReactNativeWindowsCommitId>
|
|
19
19
|
</PropertyGroup>
|
|
20
20
|
</Project>
|
package/Shared/Shared.vcxitems
CHANGED
|
@@ -444,6 +444,7 @@
|
|
|
444
444
|
<CLCompile Include="$(ReactNativeDir)\ReactCommon\react\nativemodule\featureflags\NativeReactNativeFeatureFlags.cpp" />
|
|
445
445
|
<CLCompile Include="$(ReactNativeDir)\ReactCommon\react\nativemodule\dom\NativeDOM.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
|
|
446
446
|
<CLCompile Include="$(ReactNativeDir)\ReactCommon\react\nativemodule\idlecallbacks\NativeIdleCallbacks.cpp" />
|
|
447
|
+
<CLCompile Include="$(ReactNativeDir)\ReactCommon\react\nativemodule\webperformance\NativePerformance.cpp" DisableSpecificWarnings="4996;%(DisableSpecificWarnings)" />
|
|
447
448
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\attributedstring\AttributedString.cpp" />
|
|
448
449
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\attributedstring\AttributedStringBox.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
|
|
449
450
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\BaseViewProps.cpp" DisableSpecificWarnings="4459;4715;%(DisableSpecificWarnings)" />
|
|
@@ -94,24 +94,25 @@ inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(PerformanceSpec_Rea
|
|
|
94
94
|
struct PerformanceSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
95
95
|
static constexpr auto methods = std::tuple{
|
|
96
96
|
SyncMethod<double() noexcept>{0, L"now"},
|
|
97
|
-
|
|
98
|
-
Method<void(std::string, double,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
Method<void(std::string) noexcept>{5, L"
|
|
102
|
-
|
|
103
|
-
SyncMethod<std::vector<PerformanceSpec_RawPerformanceEntry>(
|
|
104
|
-
SyncMethod<std::vector<PerformanceSpec_RawPerformanceEntry>(double) noexcept>{8, L"
|
|
105
|
-
SyncMethod
|
|
106
|
-
SyncMethod<::React::
|
|
107
|
-
SyncMethod<::React::JSValue() noexcept>{11, L"
|
|
108
|
-
SyncMethod
|
|
109
|
-
SyncMethod<
|
|
110
|
-
|
|
111
|
-
Method<void() noexcept>{15, L"
|
|
112
|
-
|
|
113
|
-
SyncMethod<std::vector<
|
|
114
|
-
|
|
97
|
+
SyncMethod<double() noexcept>{1, L"timeOrigin"},
|
|
98
|
+
Method<void(std::string, double, ) noexcept>{2, L"reportMark"},
|
|
99
|
+
Method<void(std::string, double, double, ) noexcept>{3, L"reportMeasure"},
|
|
100
|
+
SyncMethod<std::optional<double>(std::string) noexcept>{4, L"getMarkTime"},
|
|
101
|
+
Method<void(std::string) noexcept>{5, L"clearMarks"},
|
|
102
|
+
Method<void(std::string) noexcept>{6, L"clearMeasures"},
|
|
103
|
+
SyncMethod<std::vector<PerformanceSpec_RawPerformanceEntry>() noexcept>{7, L"getEntries"},
|
|
104
|
+
SyncMethod<std::vector<PerformanceSpec_RawPerformanceEntry>(std::string, std::optional<double>) noexcept>{8, L"getEntriesByName"},
|
|
105
|
+
SyncMethod<std::vector<PerformanceSpec_RawPerformanceEntry>(double) noexcept>{9, L"getEntriesByType"},
|
|
106
|
+
SyncMethod<::React::JSValueArray() noexcept>{10, L"getEventCounts"},
|
|
107
|
+
SyncMethod<::React::JSValue() noexcept>{11, L"getSimpleMemoryInfo"},
|
|
108
|
+
SyncMethod<::React::JSValue() noexcept>{12, L"getReactNativeStartupTiming"},
|
|
109
|
+
SyncMethod<(Callback<>) noexcept>{13, L"createObserver"},
|
|
110
|
+
SyncMethod<double() noexcept>{14, L"getDroppedEntriesCount"},
|
|
111
|
+
Method<void(, PerformanceSpec_PerformanceObserverInit) noexcept>{15, L"observe"},
|
|
112
|
+
Method<void() noexcept>{16, L"disconnect"},
|
|
113
|
+
SyncMethod<std::vector<PerformanceSpec_RawPerformanceEntry>(, bool) noexcept>{17, L"takeRecords"},
|
|
114
|
+
SyncMethod<std::vector<double>() noexcept>{18, L"getSupportedPerformanceEntryTypes"},
|
|
115
|
+
Method<void() noexcept>{19, L"clearEventCountsForTesting"},
|
|
115
116
|
};
|
|
116
117
|
|
|
117
118
|
template <class TModule>
|
|
@@ -125,91 +126,96 @@ struct PerformanceSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
125
126
|
" REACT_SYNC_METHOD(now) static double now() noexcept { /* implementation */ }\n");
|
|
126
127
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
127
128
|
1,
|
|
129
|
+
"timeOrigin",
|
|
130
|
+
" REACT_SYNC_METHOD(timeOrigin) double timeOrigin() noexcept { /* implementation */ }\n"
|
|
131
|
+
" REACT_SYNC_METHOD(timeOrigin) static double timeOrigin() noexcept { /* implementation */ }\n");
|
|
132
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
133
|
+
2,
|
|
128
134
|
"reportMark",
|
|
129
135
|
" REACT_METHOD(reportMark) void reportMark(std::string name, double startTime, entry) noexcept { /* implementation */ }\n"
|
|
130
136
|
" REACT_METHOD(reportMark) static void reportMark(std::string name, double startTime, entry) noexcept { /* implementation */ }\n");
|
|
131
137
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
132
|
-
|
|
138
|
+
3,
|
|
133
139
|
"reportMeasure",
|
|
134
140
|
" REACT_METHOD(reportMeasure) void reportMeasure(std::string name, double startTime, double duration, entry) noexcept { /* implementation */ }\n"
|
|
135
141
|
" REACT_METHOD(reportMeasure) static void reportMeasure(std::string name, double startTime, double duration, entry) noexcept { /* implementation */ }\n");
|
|
136
142
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
137
|
-
|
|
143
|
+
4,
|
|
138
144
|
"getMarkTime",
|
|
139
145
|
" REACT_SYNC_METHOD(getMarkTime) std::optional<double> getMarkTime(std::string name) noexcept { /* implementation */ }\n"
|
|
140
146
|
" REACT_SYNC_METHOD(getMarkTime) static std::optional<double> getMarkTime(std::string name) noexcept { /* implementation */ }\n");
|
|
141
147
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
142
|
-
|
|
148
|
+
5,
|
|
143
149
|
"clearMarks",
|
|
144
150
|
" REACT_METHOD(clearMarks) void clearMarks(std::string entryName) noexcept { /* implementation */ }\n"
|
|
145
151
|
" REACT_METHOD(clearMarks) static void clearMarks(std::string entryName) noexcept { /* implementation */ }\n");
|
|
146
152
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
147
|
-
|
|
153
|
+
6,
|
|
148
154
|
"clearMeasures",
|
|
149
155
|
" REACT_METHOD(clearMeasures) void clearMeasures(std::string entryName) noexcept { /* implementation */ }\n"
|
|
150
156
|
" REACT_METHOD(clearMeasures) static void clearMeasures(std::string entryName) noexcept { /* implementation */ }\n");
|
|
151
157
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
152
|
-
|
|
158
|
+
7,
|
|
153
159
|
"getEntries",
|
|
154
160
|
" REACT_SYNC_METHOD(getEntries) std::vector<PerformanceSpec_RawPerformanceEntry> getEntries() noexcept { /* implementation */ }\n"
|
|
155
161
|
" REACT_SYNC_METHOD(getEntries) static std::vector<PerformanceSpec_RawPerformanceEntry> getEntries() noexcept { /* implementation */ }\n");
|
|
156
162
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
157
|
-
|
|
163
|
+
8,
|
|
158
164
|
"getEntriesByName",
|
|
159
165
|
" REACT_SYNC_METHOD(getEntriesByName) std::vector<PerformanceSpec_RawPerformanceEntry> getEntriesByName(std::string entryName, std::optional<double> entryType) noexcept { /* implementation */ }\n"
|
|
160
166
|
" REACT_SYNC_METHOD(getEntriesByName) static std::vector<PerformanceSpec_RawPerformanceEntry> getEntriesByName(std::string entryName, std::optional<double> entryType) noexcept { /* implementation */ }\n");
|
|
161
167
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
162
|
-
|
|
168
|
+
9,
|
|
163
169
|
"getEntriesByType",
|
|
164
170
|
" REACT_SYNC_METHOD(getEntriesByType) std::vector<PerformanceSpec_RawPerformanceEntry> getEntriesByType(double entryType) noexcept { /* implementation */ }\n"
|
|
165
171
|
" REACT_SYNC_METHOD(getEntriesByType) static std::vector<PerformanceSpec_RawPerformanceEntry> getEntriesByType(double entryType) noexcept { /* implementation */ }\n");
|
|
166
172
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
167
|
-
|
|
173
|
+
10,
|
|
168
174
|
"getEventCounts",
|
|
169
175
|
" REACT_SYNC_METHOD(getEventCounts) ::React::JSValueArray getEventCounts() noexcept { /* implementation */ }\n"
|
|
170
176
|
" REACT_SYNC_METHOD(getEventCounts) static ::React::JSValueArray getEventCounts() noexcept { /* implementation */ }\n");
|
|
171
177
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
172
|
-
|
|
178
|
+
11,
|
|
173
179
|
"getSimpleMemoryInfo",
|
|
174
180
|
" REACT_SYNC_METHOD(getSimpleMemoryInfo) ::React::JSValue getSimpleMemoryInfo() noexcept { /* implementation */ }\n"
|
|
175
181
|
" REACT_SYNC_METHOD(getSimpleMemoryInfo) static ::React::JSValue getSimpleMemoryInfo() noexcept { /* implementation */ }\n");
|
|
176
182
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
177
|
-
|
|
183
|
+
12,
|
|
178
184
|
"getReactNativeStartupTiming",
|
|
179
185
|
" REACT_SYNC_METHOD(getReactNativeStartupTiming) ::React::JSValue getReactNativeStartupTiming() noexcept { /* implementation */ }\n"
|
|
180
186
|
" REACT_SYNC_METHOD(getReactNativeStartupTiming) static ::React::JSValue getReactNativeStartupTiming() noexcept { /* implementation */ }\n");
|
|
181
187
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
182
|
-
|
|
188
|
+
13,
|
|
183
189
|
"createObserver",
|
|
184
190
|
" REACT_SYNC_METHOD(createObserver) createObserver(std::function<void()> const & callback) noexcept { /* implementation */ }\n"
|
|
185
191
|
" REACT_SYNC_METHOD(createObserver) static createObserver(std::function<void()> const & callback) noexcept { /* implementation */ }\n");
|
|
186
192
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
187
|
-
|
|
193
|
+
14,
|
|
188
194
|
"getDroppedEntriesCount",
|
|
189
195
|
" REACT_SYNC_METHOD(getDroppedEntriesCount) double getDroppedEntriesCount( observer) noexcept { /* implementation */ }\n"
|
|
190
196
|
" REACT_SYNC_METHOD(getDroppedEntriesCount) static double getDroppedEntriesCount( observer) noexcept { /* implementation */ }\n");
|
|
191
197
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
192
|
-
|
|
198
|
+
15,
|
|
193
199
|
"observe",
|
|
194
200
|
" REACT_METHOD(observe) void observe( observer, PerformanceSpec_PerformanceObserverInit && options) noexcept { /* implementation */ }\n"
|
|
195
201
|
" REACT_METHOD(observe) static void observe( observer, PerformanceSpec_PerformanceObserverInit && options) noexcept { /* implementation */ }\n");
|
|
196
202
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
197
|
-
|
|
203
|
+
16,
|
|
198
204
|
"disconnect",
|
|
199
205
|
" REACT_METHOD(disconnect) void disconnect( observer) noexcept { /* implementation */ }\n"
|
|
200
206
|
" REACT_METHOD(disconnect) static void disconnect( observer) noexcept { /* implementation */ }\n");
|
|
201
207
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
202
|
-
|
|
208
|
+
17,
|
|
203
209
|
"takeRecords",
|
|
204
210
|
" REACT_SYNC_METHOD(takeRecords) std::vector<PerformanceSpec_RawPerformanceEntry> takeRecords( observer, bool sort) noexcept { /* implementation */ }\n"
|
|
205
211
|
" REACT_SYNC_METHOD(takeRecords) static std::vector<PerformanceSpec_RawPerformanceEntry> takeRecords( observer, bool sort) noexcept { /* implementation */ }\n");
|
|
206
212
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
207
|
-
|
|
213
|
+
18,
|
|
208
214
|
"getSupportedPerformanceEntryTypes",
|
|
209
215
|
" REACT_SYNC_METHOD(getSupportedPerformanceEntryTypes) std::vector<double> getSupportedPerformanceEntryTypes() noexcept { /* implementation */ }\n"
|
|
210
216
|
" REACT_SYNC_METHOD(getSupportedPerformanceEntryTypes) static std::vector<double> getSupportedPerformanceEntryTypes() noexcept { /* implementation */ }\n");
|
|
211
217
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
212
|
-
|
|
218
|
+
19,
|
|
213
219
|
"clearEventCountsForTesting",
|
|
214
220
|
" REACT_METHOD(clearEventCountsForTesting) void clearEventCountsForTesting() noexcept { /* implementation */ }\n"
|
|
215
221
|
" REACT_METHOD(clearEventCountsForTesting) static void clearEventCountsForTesting() noexcept { /* implementation */ }\n");
|