@@ -290,8 +290,8 @@ improvement:
290
290
sometimes behave super-linearly or even exponentially.
291
291
- Periodically the analysis phase of a SIL optimization fails to cache
292
292
overlapping subproblems, causing a super-linear slowdown.
293
- - Some SIL-to-IR lowerings (eg. large value types, ARC operations ) can
294
- generate too much LLVM IR, increasing the time spent in LLVM.
293
+ - Some SIL-to-IR lowerings (eg. large value types) can generate too much
294
+ LLVM IR, increasing the time spent in LLVM.
295
295
296
296
(Subsystem experts: please add further areas of concern here.)
297
297
@@ -424,8 +424,7 @@ scripted; the main disadvantages are that it lacks any sort of GUI and only runs
424
424
on Linux, so you can't use it to diagnose problems in builds that need macOS or
425
425
iOS frameworks or run under ` xcodebuild ` .
426
426
427
- Perf is
428
- documented
427
+ Perf is documented
429
428
[ on the kernel wiki] ( https://perf.wiki.kernel.org/index.php/Main_Page ) as well
430
429
as on [ Brendan Gregg's website] ( http://www.brendangregg.com/perf.html ) .
431
430
@@ -831,7 +830,7 @@ VNEW=$(count_instructions ${NEW} -frontend -c ${INPUT})
831
830
VDIFF=$((${VNEW} - ${VOLD}))
832
831
if [ ${VDIFF} -gt ${THRESHOLD} ]
833
832
then
834
- # Interestin
833
+ # Interesting
835
834
exit 0
836
835
else
837
836
# Not interesting
@@ -1096,7 +1095,7 @@ code-generation tool. The process is straightforward:
1096
1095
Statistics are easy to add to a file, it takes only a few simple steps:
1097
1096
- Add a define like `#define DEBUG_TYPE "subsystem-name"` to the file
1098
1097
- Add an include like `#include <swift/Basic/Statistic.h>` to the file
1099
- - Add `SWIFT_FUNC_STAT;` to the entry of any function you want to measure
1098
+ - Add `SWIFT_FUNC_STAT;` to the first line of a function to measure
1100
1099
- Optionally, add separate `STATISTIC(SomeStat, "description");`
1101
1100
definitions and manually increment `SomeStat++;` where you like;
1102
1101
`SWIFT_FUNC_STAT;` is just a short-form of declaring and incrementing a
0 commit comments