Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react-native/ios/BacktraceCpuAttributeProvider.mm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ @implementation BacktraceCpuAttributeProvider

[dictionary setObject: [NSString stringWithFormat:@"%0.0lu", [[NSProcessInfo processInfo] processorCount]] forKey:@"cpu.count"];
[dictionary setObject: [NSString stringWithFormat:@"%0.0lu", [[NSProcessInfo processInfo] activeProcessorCount]] forKey:@"cpu.count.active"];
[dictionary setObject: [NSString stringWithFormat:@"%0.0llu", totalSystemTime] forKey:@"cpu.system"];
[dictionary setObject: [NSString stringWithFormat:@"%0.0llu", totalSystemTime] forKey:@"cpu.sys"];
[dictionary setObject: [NSString stringWithFormat:@"%0.0llu", totalUserTime] forKey:@"cpu.user"];
[dictionary setObject: [NSString stringWithFormat:@"%0.0llu", totalIdleTime] forKey:@"cpu.idle"];
[dictionary setObject: [NSString stringWithFormat:@"%0.0llu", totalNiceTime] forKey:@"cpu.nice"];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ @implementation BacktraceMemoryUsageAttributeProvider
(task_info_t)&info,
&systemMemorySize);
if( kerr == KERN_SUCCESS ) {
[dictionary setObject:[NSString stringWithFormat:@"%0.0llu", (info.resident_size / 1048576)] forKey: @"process.vm.rss.size"];
[dictionary setObject:[NSString stringWithFormat:@"%0.0llu", (info.virtual_size / 1048576)] forKey: @"process.vm.vma.size"];
[dictionary setObject:[NSString stringWithFormat:@"%0.0llu", (info.resident_size_peak / 1048576)] forKey: @"process.vm.rss.peak"];
[dictionary setObject:[NSString stringWithFormat:@"%0.0llu", (info.resident_size / 1048576)] forKey: @"vm.rss.size"];
[dictionary setObject:[NSString stringWithFormat:@"%0.0llu", (info.virtual_size / 1048576)] forKey: @"vm.vma.size"];
[dictionary setObject:[NSString stringWithFormat:@"%0.0llu", (info.resident_size_peak / 1048576)] forKey: @"vm.rss.peak"];
}

// read memory usage
Expand Down