Skip to content

Commit a590e49

Browse files
committed
Add experimental Swift standard library support for tracking the invocations of runtime functions
It allows for collecting the state of runtime function counters, which are used to determine how many times a given runtime function was called. It is possible to get the global counters, which represent the total number of invocations, or per-object counters, which represent the number of runtime functions calls for a specific object.
1 parent ec1e051 commit a590e49

File tree

3 files changed

+504
-0
lines changed

3 files changed

+504
-0
lines changed

stdlib/public/core/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ set(SWIFTLIB_ESSENTIAL
107107
REPL.swift
108108
Reverse.swift
109109
Runtime.swift.gyb
110+
RuntimeFunctionCounters.swift
110111
SipHash.swift.gyb
111112
SentinelCollection.swift
112113
Sequence.swift

stdlib/public/core/GroupInfo.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
"Print.swift",
165165
"REPL.swift",
166166
"Runtime.swift",
167+
"RuntimeFunctionCounters.swift",
167168
"Shims.swift",
168169
"ThreadLocalStorage.swift",
169170
"Unmanaged.swift",

0 commit comments

Comments
 (0)