@@ -29,7 +29,6 @@ namespace swift {
29
29
struct RuntimeFunctionCountersState {
30
30
#define FUNCTION_TO_TRACK (RT_FUNCTION ) \
31
31
uint32_t SWIFT_RT_FUNCTION_INVOCATION_COUNTER_NAME (RT_FUNCTION) = 0;
32
-
33
32
// Provide one counter per runtime function being tracked.
34
33
#include " RuntimeInvocationsTracking.def"
35
34
};
@@ -54,7 +53,6 @@ static llvm::DenseMap<HeapObject *, RuntimeFunctionCountersState> RuntimeObjectS
54
53
static const char *RuntimeFunctionNames[] {
55
54
// / Define names of runtime functions.
56
55
#define FUNCTION_TO_TRACK (RT_FUNCTION ) #RT_FUNCTION,
57
-
58
56
#include " RuntimeInvocationsTracking.def"
59
57
nullptr
60
58
};
@@ -67,7 +65,6 @@ static const char *RuntimeFunctionNames[] {
67
65
enum RuntimeFunctionNamesIDs : uint32_t {
68
66
// / Defines names of enum cases for each function being tracked.
69
67
#define FUNCTION_TO_TRACK (RT_FUNCTION ) RT_FUNCTION_ID(RT_FUNCTION),
70
-
71
68
#include " RuntimeInvocationsTracking.def"
72
69
ID_LastRuntimeFunctionName,
73
70
};
@@ -83,7 +80,6 @@ static uint16_t RuntimeFunctionCountersOffsets[] = {
83
80
// / Define offset for each function being tracked.
84
81
#define FUNCTION_TO_TRACK (RT_FUNCTION ) \
85
82
(sizeof (uint16_t ) * (unsigned )RT_FUNCTION_ID (RT_FUNCTION)),
86
-
87
83
#include " RuntimeInvocationsTracking.def"
88
84
};
89
85
@@ -112,7 +108,6 @@ static uint16_t RuntimeFunctionCountersOffsets[] = {
112
108
/* TODO: Remember the order/history of operations? */ \
113
109
} \
114
110
}
115
-
116
111
#include " RuntimeInvocationsTracking.def"
117
112
118
113
// / Public APIs
@@ -175,7 +170,6 @@ static void dumpRuntimeCounters(RuntimeFunctionCountersState *State) {
175
170
if (tmp != 0 ) \
176
171
printf (" %s = %d\n " , \
177
172
RuntimeFunctionNames[(int )RT_FUNCTION_ID (RT_FUNCTION)], tmp);
178
-
179
173
#include " RuntimeInvocationsTracking.def"
180
174
}
181
175
0 commit comments