@@ -10,70 +10,42 @@ const rowGap = "5";
10
10
11
11
function getSnapshotValues ( bootProgress : BootProgress ) {
12
12
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,
17
18
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,
40
24
} = bootProgress ;
41
25
42
26
if (
43
27
bootProgress . phase === BootPhaseEnum . loading_full_snapshot ||
44
- ! loading_incremental_snapshot_total_bytes
28
+ ! loading_incremental_snapshot_total_bytes_compressed
45
29
) {
46
30
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 ,
60
38
} ;
61
39
}
62
40
63
41
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 ,
77
49
} ;
78
50
}
79
51
@@ -82,73 +54,60 @@ export function SnapshotProgress() {
82
54
if ( ! bootProgress ) return ;
83
55
84
56
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,
96
62
} = getSnapshotValues ( bootProgress ) ;
97
63
98
64
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 )
102
67
: 0 ;
103
68
104
69
return (
105
70
< Flex direction = "column" gap = "40px" >
106
71
< Flex gap = { rowGap } >
107
72
< SnapshotLoadingCard
108
73
title = "Reading"
109
- estimatedRemaining = { read_remaining }
110
- throughput = { read_throughput }
111
- completed = { read_bytes }
112
- total = { total_bytes }
74
+ completed = { readBytes }
75
+ total = { totalBytes }
113
76
/>
114
77
< SnapshotSparklineCard
115
78
title = "CPU Utilization"
116
79
tileType = "snaprd"
117
- isComplete = { ! ! read_remaining && read_remaining === total_bytes }
80
+ isComplete = { ! ! readBytes && readBytes === totalBytes }
118
81
/>
119
82
</ Flex >
120
83
121
84
< Flex gap = { rowGap } >
122
85
< SnapshotLoadingCard
123
86
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 }
128
89
/>
129
90
< SnapshotSparklineCard
130
91
title = "CPU Utilization"
131
92
tileType = "snapdc"
132
93
isComplete = {
133
- ! ! decompress_compressed_bytes &&
134
- decompress_compressed_bytes === total_bytes
94
+ ! ! decompressCompressedBytes &&
95
+ decompressCompressedBytes === totalBytes
135
96
}
136
97
/>
137
98
</ Flex >
138
99
139
100
< Flex gap = { rowGap } >
140
101
< SnapshotLoadingCard
141
102
title = "Inserting"
142
- estimatedRemaining = { insert_remaining }
143
- throughput = { insert_throughput }
144
103
completed = { insertCompletedBytes }
145
- total = { total_bytes }
104
+ total = { totalBytes }
146
105
/>
147
106
< SnapshotSparklineCard
148
107
title = "CPU Utilization"
149
108
tileType = "snapin"
150
109
isComplete = {
151
- ! ! insertCompletedBytes && insertCompletedBytes === total_bytes
110
+ ! ! insertCompletedBytes && insertCompletedBytes === totalBytes
152
111
}
153
112
/>
154
113
</ Flex >
0 commit comments