Commit c7f9cb3
gvfs:trace2: add region/data events for status deserialization
Add trace2 region and data events describing attempts to deserialize
status data using a status cache.
A category:status, label:deserialize region is pushed around the
deserialize code.
Deserialization results when reading from a file are:
category:status, path = <path>
category:status, polled = <number_of_attempts>
category:status, result = "ok" | "reject"
When reading from STDIN are:
category:status, path = "STDIN"
category:status, result = "ok" | "reject"
Status will fallback and run a normal status scan when a "reject"
is reported (unless "--deserialize-wait=fail"). If "ok" is reported,
status was able to use the status cache and avoid scanning the workdir.
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>1 parent 918f51b commit c7f9cb3
1 file changed
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
728 | | - | |
| 728 | + | |
| 729 | + | |
729 | 730 | | |
730 | 731 | | |
731 | 732 | | |
732 | 733 | | |
733 | 734 | | |
734 | 735 | | |
735 | | - | |
736 | | - | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
737 | 740 | | |
738 | 741 | | |
739 | 742 | | |
| |||
758 | 761 | | |
759 | 762 | | |
760 | 763 | | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
761 | 770 | | |
762 | 771 | | |
763 | 772 | | |
| |||
783 | 792 | | |
784 | 793 | | |
785 | 794 | | |
| 795 | + | |
| 796 | + | |
786 | 797 | | |
787 | 798 | | |
788 | 799 | | |
| |||
793 | 804 | | |
794 | 805 | | |
795 | 806 | | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
796 | 811 | | |
797 | 812 | | |
| 813 | + | |
| 814 | + | |
798 | 815 | | |
799 | 816 | | |
800 | 817 | | |
| |||
0 commit comments