Commit a3f4d67
committed
Condense fetch log time trace
#1762 added
automatic fetch trace logging for each individual file extracted from a
`.zip` file. Many of these operations are very fast, especially for
`otatools.zip` and take many lines of logs. These should be condensed
since they don't contribute much to the overall time and make the trace
harder to read.
Sample new output:
```
Performance stats:
PreFetch actions:
started: 2025-11-25 15:52:13, duration: 1 s
- GetBuilds: 1 s
Host Package:
started: 2025-11-25 15:52:14, duration: 3 m 13 s
- Download: 3 m 6 s, 851 MiB
- Extract: 6 s
- 2 operations omitted with a combined duration of 12 ms.
Default:
started: 2025-11-25 15:52:14, duration: 7 m 33 s
- Downloaded 'misc_info.txt': 1 s, 9000 B
- Downloaded 'aosp_cf_x86_64_only_phone-img-14496483.zip': 7 m 23 s, 1135 MiB
- Extracted 'super.img' from 'aosp_cf_x86_64_only_phone-img-14496483.zip': 7 s, 1339 MiB
- Desparsed [/super.img]: 933 ms, 8192 MiB
- 22 operations omitted with a combined duration of 549 ms.
Kernel:
started: 2025-11-25 15:59:47, duration: 8 ms
- 4 operations omitted with a combined duration of 8 ms.
OTA Tools:
started: 2025-11-25 15:59:47, duration: 1 m 54 s
- Downloaded 'otatools.zip': 1 m 51 s, 486 MiB
- 14653 operations omitted with a combined duration of 3 s.
```
Bug: b/4637656671 parent 2a786b0 commit a3f4d67
File tree
1 file changed
+39
-4
lines changed- base/cvd/cuttlefish/host/commands/cvd/fetch
1 file changed
+39
-4
lines changedLines changed: 39 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
52 | 60 | | |
53 | 61 | | |
54 | 62 | | |
| |||
69 | 77 | | |
70 | 78 | | |
71 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
72 | 94 | | |
73 | 95 | | |
74 | 96 | | |
| 97 | + | |
| 98 | + | |
75 | 99 | | |
76 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
77 | 106 | | |
78 | 107 | | |
79 | 108 | | |
80 | 109 | | |
81 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
82 | 116 | | |
83 | 117 | | |
84 | 118 | | |
| |||
91 | 125 | | |
92 | 126 | | |
93 | 127 | | |
94 | | - | |
| 128 | + | |
| 129 | + | |
95 | 130 | | |
96 | 131 | | |
97 | 132 | | |
| |||
110 | 145 | | |
111 | 146 | | |
112 | 147 | | |
113 | | - | |
| 148 | + | |
114 | 149 | | |
115 | 150 | | |
116 | 151 | | |
| |||
0 commit comments