Commit 460082c
refactor: unify BuildOperationMetrics into a single struct with counters
Instead of using an enum with separate CacheMetrics and CounterMetrics
associated values, use a single struct with counters/taskCounters fields.
The legacy Xcode 15.3 - Xcode 26.3 cache format (clangCacheHits, etc.)
is translated into the unified counter format during deserialization.
Signed-off-by: Kohki Miki <kohki.miki@lycorp.co.jp>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f2b5447 commit 460082c
File tree
2 files changed
+38
-47
lines changed- Sources/XCLogParser/activityparser
- Tests/XCLogParserTests
2 files changed
+38
-47
lines changedLines changed: 24 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
789 | 780 | | |
790 | | - | |
791 | | - | |
792 | | - | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
793 | 784 | | |
794 | 785 | | |
| 786 | + | |
| 787 | + | |
795 | 788 | | |
796 | 789 | | |
797 | | - | |
798 | | - | |
| 790 | + | |
| 791 | + | |
799 | 792 | | |
800 | | - | |
801 | | - | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
802 | 801 | | |
803 | 802 | | |
804 | 803 | | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
812 | 810 | | |
813 | 811 | | |
814 | 812 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
424 | | - | |
| 423 | + | |
| 424 | + | |
425 | 425 | | |
426 | | - | |
| 426 | + | |
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
513 | | - | |
514 | | - | |
515 | | - | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
516 | 516 | | |
517 | | - | |
| 517 | + | |
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
651 | 648 | | |
652 | 649 | | |
653 | 650 | | |
654 | 651 | | |
655 | 652 | | |
656 | 653 | | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
| 654 | + | |
| 655 | + | |
663 | 656 | | |
664 | 657 | | |
665 | 658 | | |
0 commit comments