Commit 0ec3117
authored
Cherry-pick two recent SimpleCounters related PRs to release-7.4 (apple#12941)
* Net2::run: add counters for callbacks executed and duration of time spent executing them (apple#12824)
It was observed that compute management platforms do provide CPU usage graphs, but retention is not necessarily as much as we'd like. CPU scheduling is directly controlled by FDB and is very, very easy to instrument to count how busy we are, so just do it.
Testing:
../build_output4/bin/fdbserver -r test -f tests/noSim/RandomUnitTests.toml
../build_output4/bin/fdbserver -r unittests -f 'noSim'
then reviewed trace files.
* Address issues noticed by retroactive AI code review (apple#12930)
* count Arenas created
* remove a deleted method signature
* Remove out of date guidance in header file
* Fix up merge
* formatting; delete a blank line1 parent 86ab72e commit 0ec3117
4 files changed
Lines changed: 30 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
111 | 119 | | |
112 | 120 | | |
113 | | - | |
114 | | - | |
| 121 | + | |
115 | 122 | | |
116 | 123 | | |
117 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
1670 | 1671 | | |
1671 | 1672 | | |
1672 | 1673 | | |
| 1674 | + | |
1673 | 1675 | | |
1674 | 1676 | | |
1675 | 1677 | | |
| |||
1678 | 1680 | | |
1679 | 1681 | | |
1680 | 1682 | | |
| 1683 | + | |
1681 | 1684 | | |
1682 | 1685 | | |
1683 | 1686 | | |
| |||
1713 | 1716 | | |
1714 | 1717 | | |
1715 | 1718 | | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
1716 | 1722 | | |
1717 | 1723 | | |
1718 | 1724 | | |
| |||
1764 | 1770 | | |
1765 | 1771 | | |
1766 | 1772 | | |
| 1773 | + | |
1767 | 1774 | | |
1768 | | - | |
1769 | | - | |
1770 | | - | |
1771 | | - | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
1772 | 1782 | | |
1773 | 1783 | | |
1774 | 1784 | | |
1775 | 1785 | | |
1776 | 1786 | | |
1777 | 1787 | | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
1778 | 1791 | | |
1779 | 1792 | | |
1780 | 1793 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 47 | + | |
54 | 48 | | |
55 | | - | |
| 49 | + | |
| 50 | + | |
56 | 51 | | |
57 | 52 | | |
58 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | 139 | | |
141 | 140 | | |
142 | 141 | | |
| |||
0 commit comments