Commit 75e1b1a
authored
Instrumenting build retrieval and unpacking times (#4339)
### Motivation
We currently lack metrics for build retrieval and unpacking times. This
PR adds that, with granularity by fuzz target and job type.
There are two different implementations for build downloading/unpacking:
- In the Build class, from which RegularBuild, SplitTargetBuild,
FuchsiaBuild and SymbolizedBuild inherit the downloading/unpacking
behavior
- In the CustomBuild class, which implements its own logic
There are two possible cases for downloading/unpacking: clusterfuzz
either downloads the whole build and unpacks it locally, or unpacks it
remotely. This is the case for all build types except CustomBuild, which
does not perform remote unpacking.
For build retrieval over http, we do not track download time. For all
the other cases, it suffices to keep track of start/finish time for
download and unpacking.
Finally, a _build_type is added to the constructor of the Build class,
from which all other inherit. This is used to track the build type
(debug or release), and is only mutated by SymbolizedBuild when
attempting to fetch a debug build.
Part of #42711 parent a27c6a9 commit 75e1b1a
File tree
3 files changed
+65
-0
lines changed- src/clusterfuzz/_internal
- build_management
- metrics
- tests/core/build_management
3 files changed
+65
-0
lines changedLines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
335 | 339 | | |
336 | 340 | | |
337 | 341 | | |
| |||
431 | 435 | | |
432 | 436 | | |
433 | 437 | | |
| 438 | + | |
434 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
435 | 448 | | |
436 | 449 | | |
437 | 450 | | |
| |||
475 | 488 | | |
476 | 489 | | |
477 | 490 | | |
| 491 | + | |
478 | 492 | | |
479 | 493 | | |
480 | 494 | | |
| |||
506 | 520 | | |
507 | 521 | | |
508 | 522 | | |
| 523 | + | |
509 | 524 | | |
510 | 525 | | |
511 | 526 | | |
| |||
537 | 552 | | |
538 | 553 | | |
539 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
540 | 565 | | |
541 | 566 | | |
542 | 567 | | |
| |||
550 | 575 | | |
551 | 576 | | |
552 | 577 | | |
| 578 | + | |
553 | 579 | | |
554 | 580 | | |
555 | 581 | | |
| |||
798 | 824 | | |
799 | 825 | | |
800 | 826 | | |
| 827 | + | |
| 828 | + | |
801 | 829 | | |
802 | 830 | | |
803 | 831 | | |
804 | 832 | | |
805 | 833 | | |
| 834 | + | |
806 | 835 | | |
807 | 836 | | |
808 | 837 | | |
| |||
862 | 891 | | |
863 | 892 | | |
864 | 893 | | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
865 | 897 | | |
866 | 898 | | |
867 | 899 | | |
| |||
872 | 904 | | |
873 | 905 | | |
874 | 906 | | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
875 | 916 | | |
876 | 917 | | |
877 | 918 | | |
| |||
888 | 929 | | |
889 | 930 | | |
890 | 931 | | |
| 932 | + | |
| 933 | + | |
891 | 934 | | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
892 | 943 | | |
893 | 944 | | |
894 | 945 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
35 | 48 | | |
36 | 49 | | |
37 | 50 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1155 | 1155 | | |
1156 | 1156 | | |
1157 | 1157 | | |
| 1158 | + | |
1158 | 1159 | | |
1159 | 1160 | | |
1160 | 1161 | | |
| |||
0 commit comments