Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
getsentry-bot committed Dec 27, 2023
1 parent 4b8cfd7 commit 6990048
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Sources/Sentry/PrivateSentrySDKOnly.mm
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,8 @@ + (uint64_t)startProfilerForTrace:(SentryId *)traceId;
if (payload != nil) {
const auto thread = sentry::profiling::ThreadHandle::current();
payload[@"platform"] = SentryPlatformName;
payload[@"transaction"] = @{
@"active_thread_id" : (thread == nullptr) ? @0 : @(thread->tid())
};
payload[@"transaction"] =
@{ @"active_thread_id" : (thread == nullptr) ? @0 : @(thread->tid()) };
}

return payload;
Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/SentryThreadHandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace profiling {
if (current == nullptr) {
return std::make_pair(threads, nullptr);
}

if (SENTRY_PROF_LOG_KERN_RETURN(task_threads(mach_task_self(), &list, &count))
== KERN_SUCCESS) {
for (decltype(count) i = 0; i < count; i++) {
Expand Down
3 changes: 2 additions & 1 deletion Sources/Sentry/SentryTransactionContext.mm
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ - (void)getThreadInfo
{
#if SENTRY_TARGET_PROFILING_SUPPORTED
const auto thread = sentry::profiling::ThreadHandle::current();
self.threadInfo = [[SentryThread alloc] initWithThreadId:(thread == nullptr) ? @0 : @(thread->tid())];
self.threadInfo =
[[SentryThread alloc] initWithThreadId:(thread == nullptr) ? @0 : @(thread->tid())];
#endif
}

Expand Down

0 comments on commit 6990048

Please sign in to comment.