Commit Graph

10 Commits

Author SHA1 Message Date
Greg Parker
eec25f33aa Update RuntimeInvocationsTracking.h 2018-01-25 18:43:20 -08:00
Mike Ash
f48bd293cb [Runtime] Remove RuntimeFunctionCounters in no-assert builds.
A build option to include or exclude RuntimeFunctionCounters. By default, it's enabled when assertions are enabled.

rdar://problem/35864525
2018-01-25 12:18:25 -05:00
Roman Levenstein
68d7778add Address post-commit review comments on PR #11910
- Use SWIFT_RUNTIME_EXPORT instead of SWIFT_RT_ENTRY_VISIBILITY for exposed functions
- Use `_swift_`  prefixes on the names of exposed functions
- Make the global counters and per-object counters cache thread-safe by using locks
2017-10-24 15:49:37 -07:00
Saleem Abdulrasool
fec7fe17dc runtime: fix the DLL storage attribute
Ensure that the proper DLL storage is annotated on the declaration.
This currently mismatched on Windows.  On non-COFF targets, we would
just honour the visibility as specified on the definition.
2017-09-22 13:07:28 -07:00
Roman Levenstein
51bb830763 #include should be on the next line after #define 2017-09-18 13:17:48 -07:00
Roman Levenstein
460de35b82 Expose runtime APIs for runtime function counters in such a way that they can be used from C 2017-09-18 12:50:59 -07:00
Roman Levenstein
2012451eb1 Fix a macro-definition 2017-09-15 17:31:15 -07:00
Roman Levenstein
1996d5fb64 Address review comments. 2017-09-15 16:39:08 -07:00
Roman Levenstein
3392b765ea Provide runtime function counters for object allocation, deallocation and initialization of static or stack-promoted objects 2017-09-15 09:24:56 -07:00
Roman Levenstein
ec1e051a36 Add runtime library support for tracking the invocations of runtime functions. 2017-09-14 16:43:13 -07:00