You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(pack): preserve cache flush on repeated SIGTERM - #3458
Keep the SIGTERM handler active until dev server shutdown settles, preventing repeated SIGTERM from interrupting cache persistence. Preserve forced exit on a second Ctrl+C and add subprocess regression tests.
Validated with 62 targeted tests and a native cache-persistence smoke test.
Shows when each build phase is active and how much CPU it consumes. Self-Time is the time spent exclusively in that phase (excluding children).
Phase
Spans
Inclusive (ms)
Self-Time (ms)
Wall Range (ms)
Resolve
31,790
3,629.6
884.0
1,937.9
Parse
8,136
898.3
666.2
3,475.6
Analyze
107,872
26,621.0
4,829.9
3,431.8
Chunk
4,535
3,178.0
450.7
1,400.8
Codegen
8,661
1,313.3
844.0
1,398.9
Emit
28
31.8
15.9
7.8
Other
1,966
7,654.1
4,088.8
4,263.1
Workload Distribution by Diagnostic Tier
Category
Spans
Inclusive (ms)
% Work
Self-Time (ms)
% Self
P0: Scheduling & Resolution
140,240
31,977.8
243.5%
6,043.2
46.0%
P1: I/O & Heavy Tasks
2,688
84.1
0.6%
68.2
0.5%
P2: Architecture (Locks/Memory)
0
0.0
0.0%
0.0
0.0%
P3: Asset Pipeline
19,169
5,350.5
40.7%
1,921.7
14.6%
P4: Bridge/Interop
0
0.0
0.0%
0.0
0.0%
Other
891
5,913.7
45.0%
3,746.3
28.5%
Top 20 Tasks by Self-Time
Self-time is the exclusive duration: time spent in the task itself, not in sub-tasks.
This is the most accurate indicator of where CPU cycles are actually spent.
Self (ms)
Inclusive (ms)
Count
Avg Self (us)
P95 Self (ms)
Max Self (ms)
% Work
Task Name
Top Caller
2,862.0
16,922.9
80,177
35.7
0.1
15.6
21.8%
module
module (60%)
2,831.9
2,969.6
19
149047.1
407.4
620.5
21.6%
save snapshot
persist (5%)
1,218.5
1,273.6
2,072
588.1
1.7
172.0
9.3%
analyze ecmascript module
module (83%)
731.7
8,399.2
25,597
28.6
0.0
13.3
5.6%
process module
process module (79%)
621.7
1,808.3
19,374
32.1
0.1
14.9
4.7%
internal resolving
internal resolving (71%)
618.6
850.8
5,963
103.7
0.4
38.2
4.7%
parse ecmascript
parse ecmascript (66%)
474.0
1,453.0
662
716.0
1.5
179.3
3.6%
generate merged code
chunking (92%)
435.6
489.6
6,679
65.2
0.2
11.4
3.3%
precompute code generation
generate merged code (77%)
356.5
2,968.4
3,784
94.2
0.1
25.5
2.7%
chunking
chunking (23%)
332.2
1,678.1
792
419.4
0.3
69.7
2.5%
write all entrypoints to disk
write all entrypoints to disk (13%)
292.5
292.5
328
891.7
0.6
191.7
2.2%
generate source map
code generation (83%)
280.6
572.3
130
2158.7
4.3
170.3
2.1%
emit code
emit code (48%)
257.5
1,816.6
11,929
21.6
0.0
4.1
2.0%
resolving
module (51%)
138.6
138.6
10
13859.8
72.2
124.6
1.1%
blocking
save snapshot (50%)
115.9
531.2
1,654
70.1
0.1
35.8
0.9%
code generation
code generation (83%)
91.9
206.8
724
126.9
0.3
17.5
0.7%
compute async chunks
compute async chunks (60%)
47.5
47.5
2,170
21.9
0.0
1.1
0.4%
read file
parse ecmascript (91%)
15.8
15.8
12
1316.6
4.7
5.1
0.1%
write file
apply effects (100%)
12.9
13.1
7
1848.9
8.7
12.2
0.1%
create project
None (0%)
10.3
62.2
283
36.5
0.1
1.2
0.1%
async reference
async reference (45%)
Critical Path Analysis
The longest sequential dependency chains that determine wall-clock time.
Focus on reducing the depth of these chains to improve parallelism.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keep the SIGTERM handler active until dev server shutdown settles, preventing repeated SIGTERM from interrupting cache persistence. Preserve forced exit on a second Ctrl+C and add subprocess regression tests.
Validated with 62 targeted tests and a native cache-persistence smoke test.