@@ -10,70 +10,42 @@ const rowGap = "5";
1010
1111function getSnapshotValues ( bootProgress : BootProgress ) {
1212 const {
13- loading_full_snapshot_total_bytes,
14- loading_full_snapshot_read_remaining,
15- loading_full_snapshot_read_bytes,
16- loading_full_snapshot_read_throughput,
13+ loading_full_snapshot_total_bytes_compressed,
14+ loading_full_snapshot_read_bytes_compressed,
15+ loading_full_snapshot_decompress_bytes_compressed,
16+ loading_full_snapshot_decompress_bytes_decompressed,
17+ loading_full_snapshot_insert_bytes_decompressed,
1718
18- loading_full_snapshot_decompress_remaining,
19- loading_full_snapshot_decompress_throughput,
20- loading_full_snapshot_decompress_compressed_bytes,
21- loading_full_snapshot_decompress_decompressed_bytes,
22-
23- loading_full_snapshot_insert_remaining,
24- loading_full_snapshot_insert_bytes,
25- loading_full_snapshot_insert_throughput,
26-
27- loading_incremental_snapshot_total_bytes,
28- loading_incremental_snapshot_read_remaining,
29- loading_incremental_snapshot_read_bytes,
30- loading_incremental_snapshot_read_throughput,
31-
32- loading_incremental_snapshot_decompress_remaining,
33- loading_incremental_snapshot_decompress_throughput,
34- loading_incremental_snapshot_decompress_compressed_bytes,
35- loading_incremental_snapshot_decompress_decompressed_bytes,
36-
37- loading_incremental_snapshot_insert_remaining,
38- loading_incremental_snapshot_insert_bytes,
39- loading_incremental_snapshot_insert_throughput,
19+ loading_incremental_snapshot_total_bytes_compressed,
20+ loading_incremental_snapshot_read_bytes_compressed,
21+ loading_incremental_snapshot_decompress_bytes_compressed,
22+ loading_incremental_snapshot_decompress_bytes_decompressed,
23+ loading_incremental_snapshot_insert_bytes_decompressed,
4024 } = bootProgress ;
4125
4226 if (
4327 bootProgress . phase === BootPhaseEnum . loading_full_snapshot ||
44- ! loading_incremental_snapshot_total_bytes
28+ ! loading_incremental_snapshot_total_bytes_compressed
4529 ) {
4630 return {
47- total_bytes : loading_full_snapshot_total_bytes ,
48- read_remaining : loading_full_snapshot_read_remaining ,
49- read_bytes : loading_full_snapshot_read_bytes ,
50- read_throughput : loading_full_snapshot_read_throughput ,
51- decompress_remaining : loading_full_snapshot_decompress_remaining ,
52- decompress_throughput : loading_full_snapshot_decompress_throughput ,
53- decompress_compressed_bytes :
54- loading_full_snapshot_decompress_compressed_bytes ,
55- decompress_decompressed_bytes :
56- loading_full_snapshot_decompress_decompressed_bytes ,
57- insert_remaining : loading_full_snapshot_insert_remaining ,
58- insert_bytes : loading_full_snapshot_insert_bytes ,
59- insert_throughput : loading_full_snapshot_insert_throughput ,
31+ totalBytes : loading_full_snapshot_total_bytes_compressed ,
32+ readBytes : loading_full_snapshot_read_bytes_compressed ,
33+ decompressCompressedBytes :
34+ loading_full_snapshot_decompress_bytes_compressed ,
35+ decompressDecompressedBytes :
36+ loading_full_snapshot_decompress_bytes_decompressed ,
37+ insertBytes : loading_full_snapshot_insert_bytes_decompressed ,
6038 } ;
6139 }
6240
6341 return {
64- total_bytes : loading_incremental_snapshot_total_bytes ,
65- read_remaining : loading_incremental_snapshot_read_remaining ,
66- read_bytes : loading_incremental_snapshot_read_bytes ,
67- read_throughput : loading_incremental_snapshot_read_throughput ,
68- decompress_remaining : loading_incremental_snapshot_decompress_remaining ,
69- decompress_throughput : loading_incremental_snapshot_decompress_throughput ,
70- decompress_compressed_bytes :
71- loading_incremental_snapshot_decompress_compressed_bytes ,
72- decompress_decompressed_bytes :
73- loading_incremental_snapshot_decompress_decompressed_bytes ,
74- insert_remaining : loading_incremental_snapshot_insert_remaining ,
75- insert_bytes : loading_incremental_snapshot_insert_bytes ,
76- insert_throughput : loading_incremental_snapshot_insert_throughput ,
42+ totalBytes : loading_incremental_snapshot_total_bytes_compressed ,
43+ readBytes : loading_incremental_snapshot_read_bytes_compressed ,
44+ decompressCompressedBytes :
45+ loading_incremental_snapshot_decompress_bytes_compressed ,
46+ decompressDecompressedBytes :
47+ loading_incremental_snapshot_decompress_bytes_decompressed ,
48+ insertBytes : loading_incremental_snapshot_insert_bytes_decompressed ,
7749 } ;
7850}
7951
@@ -82,73 +54,60 @@ export function SnapshotProgress() {
8254 if ( ! bootProgress ) return ;
8355
8456 const {
85- total_bytes,
86- read_remaining,
87- read_bytes,
88- read_throughput,
89- decompress_remaining,
90- decompress_throughput,
91- decompress_compressed_bytes,
92- decompress_decompressed_bytes,
93- insert_remaining,
94- insert_bytes,
95- insert_throughput,
57+ totalBytes,
58+ readBytes,
59+ decompressCompressedBytes,
60+ decompressDecompressedBytes,
61+ insertBytes,
9662 } = getSnapshotValues ( bootProgress ) ;
9763
9864 const insertCompletedBytes =
99- insert_bytes && decompress_compressed_bytes && decompress_decompressed_bytes
100- ? insert_bytes *
101- ( decompress_compressed_bytes / decompress_decompressed_bytes )
65+ insertBytes && decompressCompressedBytes && decompressDecompressedBytes
66+ ? insertBytes * ( decompressCompressedBytes / decompressDecompressedBytes )
10267 : 0 ;
10368
10469 return (
10570 < Flex direction = "column" gap = "40px" >
10671 < Flex gap = { rowGap } >
10772 < SnapshotLoadingCard
10873 title = "Reading"
109- estimatedRemaining = { read_remaining }
110- throughput = { read_throughput }
111- completed = { read_bytes }
112- total = { total_bytes }
74+ completed = { readBytes }
75+ total = { totalBytes }
11376 />
11477 < SnapshotSparklineCard
11578 title = "CPU Utilization"
11679 tileType = "snaprd"
117- isComplete = { ! ! read_remaining && read_remaining === total_bytes }
80+ isComplete = { ! ! readBytes && readBytes === totalBytes }
11881 />
11982 </ Flex >
12083
12184 < Flex gap = { rowGap } >
12285 < SnapshotLoadingCard
12386 title = "Decompressing"
124- estimatedRemaining = { decompress_remaining }
125- throughput = { decompress_throughput }
126- completed = { decompress_compressed_bytes }
127- total = { total_bytes }
87+ completed = { decompressCompressedBytes }
88+ total = { totalBytes }
12889 />
12990 < SnapshotSparklineCard
13091 title = "CPU Utilization"
13192 tileType = "snapdc"
13293 isComplete = {
133- ! ! decompress_compressed_bytes &&
134- decompress_compressed_bytes === total_bytes
94+ ! ! decompressCompressedBytes &&
95+ decompressCompressedBytes === totalBytes
13596 }
13697 />
13798 </ Flex >
13899
139100 < Flex gap = { rowGap } >
140101 < SnapshotLoadingCard
141102 title = "Inserting"
142- estimatedRemaining = { insert_remaining }
143- throughput = { insert_throughput }
144103 completed = { insertCompletedBytes }
145- total = { total_bytes }
104+ total = { totalBytes }
146105 />
147106 < SnapshotSparklineCard
148107 title = "CPU Utilization"
149108 tileType = "snapin"
150109 isComplete = {
151- ! ! insertCompletedBytes && insertCompletedBytes === total_bytes
110+ ! ! insertCompletedBytes && insertCompletedBytes === totalBytes
152111 }
153112 />
154113 </ Flex >
0 commit comments