getsentry / sentry-react-native

Official Sentry SDK for React Native
https://sentry.io
MIT License
1.59k stars 337 forks source link

internal(samples): Add reload JS bundle for Expo sample #4303

Closed krystofwoldrich closed 6 days ago

krystofwoldrich commented 1 week ago

skip-changelog

This PR adds Reload JS Bundle button to the Expo sample app.

This helps with debugging issues related with bundle reload and session replay.

https://github.com/getsentry/sentry-react-native/issues/4234

github-actions[bot] commented 1 week ago

Android (legacy) Performance metrics :rocket:

  Plain With Sentry Diff
Startup time 438.92 ms 434.71 ms -4.20 ms
Size 17.74 MiB 20.08 MiB 2.35 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
544699261cd72e3efc1259ba66b138f5f70a05ed 403.40 ms 426.70 ms 23.30 ms
700cbf4afb71e75ce0939b98522893b4ae61d70b 425.56 ms 436.26 ms 10.70 ms
15c80abcaf3bedf5d6f15c0eebefc9e7c1524da1+dirty 336.27 ms 350.58 ms 14.31 ms
8ae23a70cf23a4f7a3c54784f496e7af813b7a48 526.83 ms 513.38 ms -13.45 ms
12427f44d4b7746c431a369b538ec70ab2993c02 393.69 ms 414.84 ms 21.14 ms
e1ea4a881cf6232956e5a1e1a2e7b6a8eba730d0 506.82 ms 510.48 ms 3.66 ms
e5c9b8b6d5ce209fa4b3a77aa9de65bd590fa727 409.02 ms 426.66 ms 17.64 ms
5571a202e0c1fa9393e62c66ebd908444fee9c6e 410.55 ms 441.06 ms 30.51 ms
fe135918376819714679fec8bf2bb2e1f07ec64b 478.92 ms 480.84 ms 1.92 ms
9c48b2c9eb6422d8d51fcf56b1b4ab7841d2ec8a 349.24 ms 385.96 ms 36.72 ms

App size

Revision Plain With Sentry Diff
544699261cd72e3efc1259ba66b138f5f70a05ed 17.73 MiB 19.85 MiB 2.12 MiB
700cbf4afb71e75ce0939b98522893b4ae61d70b 17.73 MiB 20.07 MiB 2.33 MiB
15c80abcaf3bedf5d6f15c0eebefc9e7c1524da1+dirty 17.73 MiB 20.04 MiB 2.31 MiB
8ae23a70cf23a4f7a3c54784f496e7af813b7a48 17.74 MiB 20.07 MiB 2.34 MiB
12427f44d4b7746c431a369b538ec70ab2993c02 17.73 MiB 19.85 MiB 2.12 MiB
e1ea4a881cf6232956e5a1e1a2e7b6a8eba730d0 17.74 MiB 20.08 MiB 2.34 MiB
e5c9b8b6d5ce209fa4b3a77aa9de65bd590fa727 17.73 MiB 19.83 MiB 2.10 MiB
5571a202e0c1fa9393e62c66ebd908444fee9c6e 17.73 MiB 19.93 MiB 2.19 MiB
fe135918376819714679fec8bf2bb2e1f07ec64b 17.74 MiB 20.07 MiB 2.34 MiB
9c48b2c9eb6422d8d51fcf56b1b4ab7841d2ec8a 17.73 MiB 19.80 MiB 2.07 MiB
github-actions[bot] commented 1 week ago

Android (new) Performance metrics :rocket:

  Plain With Sentry Diff
Startup time 409.98 ms 424.78 ms 14.80 ms
Size 7.15 MiB 8.36 MiB 1.21 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
7fd512afedf0e54a9572c2c31545ca61e5a59aed+dirty 439.69 ms 503.71 ms 64.01 ms
0d3e6775185b3030074b2bca3cb796e5d265910b+dirty 384.24 ms 431.45 ms 47.21 ms
15c80abcaf3bedf5d6f15c0eebefc9e7c1524da1+dirty 276.38 ms 327.54 ms 51.17 ms
0db0c729a4ac7c205a44cb4702fa7ba5b0bc03c0+dirty 335.20 ms 351.06 ms 15.86 ms
e2b64fed057d4b01cf7ad79eb19eb3c8b8002a82+dirty 258.82 ms 304.26 ms 45.44 ms
1c653243e2e4fd64d6c98a843b9aeccf235ba198+dirty 381.10 ms 427.26 ms 46.16 ms
5a22220fafc6352a2e07e20943dda325a4cf67f5+dirty 384.61 ms 419.06 ms 34.45 ms
728164bd341a3b0e14876d86101c4bcca5b1f1ed+dirty 335.93 ms 342.94 ms 7.01 ms
62a750bd050f26dbf2553deb01e3f453f272de2c+dirty 370.78 ms 376.73 ms 5.96 ms
c398f670f92b4271a2da58363ef9b1d567162273+dirty 315.08 ms 345.60 ms 30.52 ms

App size

Revision Plain With Sentry Diff
7fd512afedf0e54a9572c2c31545ca61e5a59aed+dirty 7.15 MiB 8.35 MiB 1.21 MiB
0d3e6775185b3030074b2bca3cb796e5d265910b+dirty 7.15 MiB 8.35 MiB 1.20 MiB
15c80abcaf3bedf5d6f15c0eebefc9e7c1524da1+dirty 7.15 MiB 8.09 MiB 966.13 KiB
0db0c729a4ac7c205a44cb4702fa7ba5b0bc03c0+dirty 7.15 MiB 8.04 MiB 911.02 KiB
e2b64fed057d4b01cf7ad79eb19eb3c8b8002a82+dirty 7.15 MiB 8.07 MiB 947.16 KiB
1c653243e2e4fd64d6c98a843b9aeccf235ba198+dirty 7.15 MiB 8.22 MiB 1.07 MiB
5a22220fafc6352a2e07e20943dda325a4cf67f5+dirty 7.15 MiB 8.21 MiB 1.06 MiB
728164bd341a3b0e14876d86101c4bcca5b1f1ed+dirty 7.15 MiB 8.12 MiB 997.71 KiB
62a750bd050f26dbf2553deb01e3f453f272de2c+dirty 7.15 MiB 8.21 MiB 1.06 MiB
c398f670f92b4271a2da58363ef9b1d567162273+dirty 7.15 MiB 8.21 MiB 1.07 MiB
github-actions[bot] commented 1 week ago

iOS (legacy) Performance metrics :rocket:

  Plain With Sentry Diff
Startup time 1231.29 ms 1230.98 ms -0.31 ms
Size 2.36 MiB 3.10 MiB 753.52 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
77680ecf266a860bfb896a48f2e1beb05d774bb2+dirty 1231.81 ms 1238.35 ms 6.54 ms
1faf8e36aa9f577383f75fcefacad011fe82a691+dirty 1214.87 ms 1222.83 ms 7.97 ms
7bc4d758f2bdfa0bbb51d2a9119418c0f500e893+dirty 1233.40 ms 1229.56 ms -3.83 ms
d7401ac44acf524fe4d9a6a525f2cc13c70ce9e5+dirty 1252.38 ms 1275.04 ms 22.66 ms
8ae23a70cf23a4f7a3c54784f496e7af813b7a48+dirty 1230.02 ms 1227.62 ms -2.40 ms
5a22220fafc6352a2e07e20943dda325a4cf67f5+dirty 1209.49 ms 1220.94 ms 11.45 ms
80b2ce3d0ebe86bf1196944a2036912f6670295c+dirty 1265.92 ms 1268.60 ms 2.69 ms
b95b8afb28c7421bc27d61aca08c99e7957777f2+dirty 1221.39 ms 1228.52 ms 7.13 ms
d0bf49472b8e02ea40eab48e2e861b603450233e+dirty 1289.40 ms 1298.40 ms 9.00 ms
f06c879d164a5bd44945c6e000e25ce3f7c14172+dirty 1252.64 ms 1259.66 ms 7.02 ms

App size

Revision Plain With Sentry Diff
77680ecf266a860bfb896a48f2e1beb05d774bb2+dirty 2.36 MiB 3.10 MiB 753.42 KiB
1faf8e36aa9f577383f75fcefacad011fe82a691+dirty 2.36 MiB 3.08 MiB 736.75 KiB
7bc4d758f2bdfa0bbb51d2a9119418c0f500e893+dirty 2.36 MiB 3.10 MiB 752.58 KiB
d7401ac44acf524fe4d9a6a525f2cc13c70ce9e5+dirty 2.36 MiB 2.83 MiB 481.14 KiB
8ae23a70cf23a4f7a3c54784f496e7af813b7a48+dirty 2.36 MiB 3.10 MiB 752.42 KiB
5a22220fafc6352a2e07e20943dda325a4cf67f5+dirty 2.36 MiB 2.92 MiB 570.21 KiB
80b2ce3d0ebe86bf1196944a2036912f6670295c+dirty 2.36 MiB 2.84 MiB 486.98 KiB
b95b8afb28c7421bc27d61aca08c99e7957777f2+dirty 2.36 MiB 3.14 MiB 793.32 KiB
d0bf49472b8e02ea40eab48e2e861b603450233e+dirty 2.36 MiB 2.83 MiB 481.15 KiB
f06c879d164a5bd44945c6e000e25ce3f7c14172+dirty 2.36 MiB 2.88 MiB 530.42 KiB
github-actions[bot] commented 1 week ago

iOS (new) Performance metrics :rocket:

  Plain With Sentry Diff
Startup time 1249.16 ms 1242.02 ms -7.14 ms
Size 2.92 MiB 3.66 MiB 758.76 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
77680ecf266a860bfb896a48f2e1beb05d774bb2+dirty 1237.65 ms 1236.24 ms -1.41 ms
1faf8e36aa9f577383f75fcefacad011fe82a691+dirty 1223.38 ms 1220.56 ms -2.82 ms
7bc4d758f2bdfa0bbb51d2a9119418c0f500e893+dirty 1222.13 ms 1216.39 ms -5.74 ms
d7401ac44acf524fe4d9a6a525f2cc13c70ce9e5+dirty 1288.10 ms 1289.54 ms 1.44 ms
8ae23a70cf23a4f7a3c54784f496e7af813b7a48+dirty 1233.67 ms 1229.52 ms -4.15 ms
5a22220fafc6352a2e07e20943dda325a4cf67f5+dirty 1246.18 ms 1249.61 ms 3.43 ms
80b2ce3d0ebe86bf1196944a2036912f6670295c+dirty 1245.12 ms 1262.04 ms 16.92 ms
b95b8afb28c7421bc27d61aca08c99e7957777f2+dirty 1235.60 ms 1242.06 ms 6.46 ms
d0bf49472b8e02ea40eab48e2e861b603450233e+dirty 1266.20 ms 1267.52 ms 1.32 ms
f06c879d164a5bd44945c6e000e25ce3f7c14172+dirty 1285.14 ms 1285.86 ms 0.72 ms

App size

Revision Plain With Sentry Diff
77680ecf266a860bfb896a48f2e1beb05d774bb2+dirty 2.92 MiB 3.66 MiB 758.54 KiB
1faf8e36aa9f577383f75fcefacad011fe82a691+dirty 2.92 MiB 3.64 MiB 742.61 KiB
7bc4d758f2bdfa0bbb51d2a9119418c0f500e893+dirty 2.92 MiB 3.66 MiB 757.15 KiB
d7401ac44acf524fe4d9a6a525f2cc13c70ce9e5+dirty 2.92 MiB 3.40 MiB 488.06 KiB
8ae23a70cf23a4f7a3c54784f496e7af813b7a48+dirty 2.92 MiB 3.66 MiB 757.67 KiB
5a22220fafc6352a2e07e20943dda325a4cf67f5+dirty 2.92 MiB 3.48 MiB 575.81 KiB
80b2ce3d0ebe86bf1196944a2036912f6670295c+dirty 2.92 MiB 3.40 MiB 492.75 KiB
b95b8afb28c7421bc27d61aca08c99e7957777f2+dirty 2.92 MiB 3.69 MiB 794.16 KiB
d0bf49472b8e02ea40eab48e2e861b603450233e+dirty 2.92 MiB 3.40 MiB 488.08 KiB
f06c879d164a5bd44945c6e000e25ce3f7c14172+dirty 2.92 MiB 3.44 MiB 533.24 KiB