Skip to content

Commit 26af50b

Browse files
authored
meta: remove leftover noisy logging (#3738)
1 parent 86ed0eb commit 26af50b

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Sources/Sentry/Profiling/SentryProfilerState.mm

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -115,26 +115,17 @@ - (void)appendBacktrace:(const Backtrace &)backtrace
115115
# endif
116116

117117
const auto stack = [NSMutableArray<NSNumber *> array];
118-
# if defined(DEBUG)
119-
printf("[Sentry] [debug] [SentryProfilerState:%d] stack frames: %lu; stack thread: %s\n",
120-
__LINE__, backtrace.addresses.size(), threadID.UTF8String);
121-
# endif // defined(DEBUG)
122118
for (std::vector<uintptr_t>::size_type backtraceAddressIdx = 0;
123119
backtraceAddressIdx < backtrace.addresses.size(); backtraceAddressIdx++) {
124120
const auto instructionAddress
125121
= sentry_formatHexAddressUInt64(backtrace.addresses[backtraceAddressIdx]);
126-
127122
const auto frameIndex = state.frameIndexLookup[instructionAddress];
128123
if (frameIndex == nil) {
129124
const auto frame = [NSMutableDictionary<NSString *, id> dictionary];
130125
frame[@"instruction_addr"] = instructionAddress;
131126
# if defined(DEBUG)
132-
const auto functionName
127+
frame[@"function"]
133128
= parseBacktraceSymbolsFunctionName(symbols[backtraceAddressIdx]);
134-
printf("[Sentry] [debug] [SentryProfilerState:%d] function name: %s; instruction "
135-
"address: %s\n",
136-
__LINE__, functionName.UTF8String, instructionAddress.UTF8String);
137-
frame[@"function"] = functionName;
138129
# endif
139130
const auto newFrameIndex = @(state.frames.count);
140131
[stack addObject:newFrameIndex];
@@ -145,7 +136,6 @@ - (void)appendBacktrace:(const Backtrace &)backtrace
145136
}
146137
}
147138
# if defined(DEBUG)
148-
printf("-----finished backtrace-----\n");
149139
free(symbols);
150140
# endif
151141

0 commit comments

Comments
 (0)