Commit 077b559
log number of deleted inodes after GC completes
Summary:
## Log Number of Deleted Inodes After GC Completes
This diff adds logging for the number of deleted inodes after the Garbage Collector (GC) completes.
**Changes:**
* In `EdenServer.cpp`, the lambda function passed to `thenTry` now captures the `totalNumberOfInodesBeforeGC` variable, which is used to calculate the number of deleted inodes.
* In `LogEvent.h`, a new field `numOfDeletedInodes` is added to the `WorkingCopyGc` struct, along with a new constructor parameter to initialize it. The `populate` function is updated to include this new field.
**Purpose:**
This diff aims to provide additional logging information about the GC process, specifically the number of inodes deleted after completion. This can help with debugging and monitoring the performance of the GC.
Reviewed By: MichaelCuevas, jdelliot
Differential Revision: D75327069
fbshipit-source-id: 4d1b056e4e040a0e391120868565917a57ae5be21 parent f476b48 commit 077b559
2 files changed
+20
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2753 | 2753 | | |
2754 | 2754 | | |
2755 | 2755 | | |
2756 | | - | |
| 2756 | + | |
| 2757 | + | |
2757 | 2758 | | |
2758 | 2759 | | |
2759 | 2760 | | |
2760 | 2761 | | |
2761 | 2762 | | |
2762 | 2763 | | |
2763 | 2764 | | |
2764 | | - | |
2765 | | - | |
2766 | 2765 | | |
2767 | 2766 | | |
2768 | 2767 | | |
2769 | 2768 | | |
| 2769 | + | |
| 2770 | + | |
| 2771 | + | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
| 2775 | + | |
2770 | 2776 | | |
2771 | 2777 | | |
2772 | 2778 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
| 589 | + | |
589 | 590 | | |
590 | | - | |
591 | | - | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
592 | 600 | | |
593 | 601 | | |
594 | 602 | | |
595 | 603 | | |
596 | 604 | | |
| 605 | + | |
597 | 606 | | |
598 | 607 | | |
599 | 608 | | |
| |||
0 commit comments