Skip to content

Commit c5f452b

Browse files
committed
-debug-time-compilation: Fix 2f21735 to actually distinguish phases.
https://bugs.swift.org/browse/SR-4100
1 parent b10bc8f commit c5f452b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/swift/Basic/Timer.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ namespace swift {
3333
public:
3434
explicit SharedTimer(StringRef name) {
3535
if (CompilationTimersEnabled == State::Enabled)
36-
Timer.emplace(name, StringRef("Swift compilation"), StringRef("swift"),
37-
StringRef("swift related timers"));
36+
Timer.emplace(name, name, "swift", "Swift compilation");
3837
else
3938
CompilationTimersEnabled = State::Skipped;
4039
}

0 commit comments

Comments
 (0)