Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
47 views

How to export symbols with `xctrace export`

xcode screenshot I am working on a project where we have to find the performance or the time taken by functions inside an app , i am using the following commands $ATE_XCODE_PATH/Contents/Developer/...
karan adobe's user avatar
0 votes
1 answer
385 views

I'm trying to use Xcode Instruments 15.3 to analyze the http traffic of my application, but the instruments do not collect the data of simulator

I'm trying to use Instruments to monitor the app's HTTP traffic, but the profile is not collecting any data. I'm trying to follow this article step by step to collect the data I need: https://www....
Lucas Batista's user avatar
0 votes
0 answers
361 views

SwiftData leaks

i am working on an SwiftUI app, which needs to perform multiple coreData comparisons between two tables. The Problem is, when i do the comparison, my app randomly crashes.. i need to keep a close eye ...
blendstylez's user avatar
-1 votes
1 answer
86 views

Why is my app crashing on an iPad due to low memory?

Newbie to coding. I'm at the stage of testing part of my app on an iPad. It works without dramas in the simulator (which I understand why). When I run it on an iPad, it crashes after a couple of ...
Cpt.Spaulding's user avatar
1 vote
0 answers
166 views

Memory leaks detection in Intruments did not work

I'm facing some memory leaks here. These classes were retained when pushing <-> popping from particular view controller. Memory Graph allows me to see precisely where the classes are. However, ...
sonle's user avatar
  • 7,815
1 vote
1 answer
606 views

Xcode Instruments “Points of Interest” dropping intervals

tl;dr When logging large numbers of intervals in “Points of Interest” tool, I am seeing intervals randomly getting omitted from the graph in the main pane. Are others seeing this problem? Am I doing ...
Rob's user avatar
  • 433k
0 votes
0 answers
242 views

Error while tying to run instruments with Xcode 15

I'm trying to run instruments with Xcode 15, and all the instruments give the same error when I tap on the record button. I get the error in both cases while connecting to a physical device (iPad 16.1....
Teja Nandamuri's user avatar
0 votes
1 answer
268 views

Is latest Instruments not support A17 Pro for CPU counters?

I would like to check CPU counters by Instruments for A17 Pro (iPhone 15 Pro, iOS 17.0), but it shows unsupported on 'Recording Options' -> 'CPU Name'. Anyone meet the same situation? or it is ...
Brad Chou's user avatar
1 vote
0 answers
32 views

Xcode Instruments launches wrong build

I'm using Xcode 14.3 on macOS 13.3.1 When I try to launch my project with Instruments for Profiling, it is launching an arbitrary copy of a bundle with the same bundle ID. As this project has been in ...
yano's user avatar
  • 4,393
0 votes
1 answer
97 views

Accessing some of AVAudioEngine properties or methods causing a memory leak in Xcode Instruments

I'm not sure wether AVAudioEngine is internally causing some memory leaks or it is a bug of Xcode Instruments but I had a strange case where I was seeing memory leaks after launching the app. Finally ...
Kakhi Kiknadze's user avatar
0 votes
1 answer
337 views

How to See Line Numbers in Instruments Performance Profiles

I may just be using this program wrong, but I've been having a lot of difficulty using the C++ profiler on MacOS. There are two major issues: I'd preferably like to see line-by-line annotations of ...
SapphireSun's user avatar
  • 9,348
1 vote
1 answer
804 views

Points of interest not showing in Xcode Instruments

'Points of interest' are not showing in Xcode. What are possible reasons for this? Sample (followed from this answer): let pointsOfInterest = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: ....
Arjan's user avatar
  • 16.9k
1 vote
0 answers
39 views

Understand the output of XCode Instruments

I'm trying to profile my code using Instruments. What I get is something like the following window: What I don't understand is: below lq_cohomology, Instruments lists HeapMatrix::pivot. This method ...
Bubaya's user avatar
  • 769
1 vote
2 answers
445 views

Is latest Instruments not support A16 for CPU counters?

I would like to check CPU counters by Instruments for A16 (iPhone 14 Pro Max, iOS 16.0, 16.3), but it shows unsupported on 'Recording Options' -> 'CPU Name'. Anyone meet the same situation? or it ...
Brad Chou's user avatar
0 votes
1 answer
394 views

Is there anyway to check how long microtasks take to execute?

I would like to time a function which will spawn a bunch of microtasks. I would like to time how long the microtasks took to execute and exclude the idle time that the event loop was empty. It's ...
david_adler's user avatar
  • 10.7k
0 votes
0 answers
267 views

Unable to profile simple C++ program in Instruments: "failed to execute loader thread"

I made a new command-line tool C++ project in Xcode, with the following main.cpp: #include <iostream> int main() { std::cout << "Hello, World!\n"; } When I try to profile it ...
evanacox's user avatar
  • 103
1 vote
1 answer
218 views

Why does the memory growth keep decreasing after I click "Mark Generation" in Xcode Allocations?

I'm using Allocations to profile my app to see if it has any memory issues. Every time I click "Mark Generation" I get a new memory snapshot and I can see how much memory increases during ...
P. Tsin's user avatar
  • 557
5 votes
0 answers
339 views

Xcode Instrument Measure Average CPU Load

I am using Xcode Instrument Tool to Measure My App's CPU Usage. Is there a way to find out the average CPU usage in a certain period of time? I have tried to export the .trace file to xml format and ...
Hongming Yu's user avatar
2 votes
1 answer
392 views

Have Xcode open a given source file at specific line number (URL scheme?)?

I'm working on a custom log file viewer and would like to add a way to jump to a specific line in a source file in Xcode. Is there a way to have Xcode reveal a given source file of the active project ...
Mark's user avatar
  • 6,877
2 votes
0 answers
47 views

Xcode Instruments Time Profiler not accepting dYSM file

I have been been trying to see the symbols on the Time Profiler instruments whilst running my app. I have successfully created the dYSM file located in my derived data. Every-time I go to Preferences &...
Kamanda's user avatar
  • 305
3 votes
1 answer
280 views

How to specify symbol/character in os-signpost-point-schema

I have a custom Xcode 13.2.1 (13C100) Instrument to which I have recently added os-signpost-point-schema. I notice that the events are marked with a hyphen/dash rather than a ⓢ. See the comparison of ...
Rob's user avatar
  • 433k
3 votes
0 answers
469 views

Xcode Instruments Unknown Addresses

I'm using the Xcode Instruments tool to Time Profile my application. Unfortunately, no matter how much I interact with the application while recording, I don't see a comprehensive break down of ...
muZero's user avatar
  • 958
3 votes
1 answer
556 views

Cannot find 'OSSignposter' in scope

I am new to Instruments and I want to use the new struct OSSignposter. To use it I updated macOS to 12.0.1. My Xcode Version is 13.0. When I try to create an instance of OSSignposter I get the Error ...
printDavid's user avatar
1 vote
1 answer
207 views

How to avoid “does not support ... platform” error for custom Xcode instrument

I have a custom Xcode instrument that I (re)use all the time when profiling apps. My standard workflow is to: open the instrument’s project and run it (which fires up a Instruments debugging session);...
Rob's user avatar
  • 433k
0 votes
0 answers
168 views

Doing "Mark Generations" in XCode Instruments from terminal

I'm running the command: xcrun xctrace record --template 'Allocations' --device XXXXX --attach 'iOSappName' to do the "Allocations" trace for my iOS app as part of our automation suite ...
vss's user avatar
  • 1
0 votes
1 answer
916 views

XCode Instruments can't open .trace file: The file couldn't be opened because there is not such file

I shared .trace file that I created with XCode 12.5 Instruments and sent it to the other developers to analyze but they can not open it because of next error: I don't have this file on my mac and don'...
iUrii's user avatar
  • 13.6k
1 vote
1 answer
304 views

How do you match strings in custom Instruments start-pattern?

I am having trouble matching a string literal in start-pattern in a custom instrument (see WWDC 2018 video Creating Custom Instruments) in Xcode’s Instruments. For example, this start-pattern works ......
Rob's user avatar
  • 433k
0 votes
1 answer
270 views

Xcode Instruments error: Allocations tracking library was not loaded in time

When profiling a standalone application target using Instruments with the allocations instrument, the following happens. Start the recording The application starts up right away Instruments shows a ...
Dalzhim's user avatar
  • 2,010
3 votes
0 answers
1k views

Xcode instruments does not show a symbolicated trace

I make a configuration named profile the same as debug configuration except Debug format information: DWARF with dSYMs I change the profile setting to profile configuration I profile in Xcode and ...
Henry's user avatar
  • 553
7 votes
1 answer
994 views

How to debug SwiftUI Widget memory issue?

I'm creating a widget in swiftui, with a prefilled mock json, stored locally. Mock JSON has following data: { "id":"111", "title":"some dummy title", ...
Teja Nandamuri's user avatar
0 votes
1 answer
169 views

Is it possible to enable GuardMalloc and Zombie Objects while running an App from command line?

Is it possible to enable GuardMalloc and Zombie Objects while running an App from command line? If I could set some kind of environment Variables to enable these before running app?
Kunal Pasricha's user avatar
3 votes
1 answer
2k views

iOS Memory leaks , memory graph debugger shows no leaks but in parallel Xcode-Instruments-leaks shows leaks

in my Project When I started to look for leaks in memory graph debugger, I found few and fixed them , and now with memory graph no leaks is found . the problem with Instruments->leaks , sometimes ...
Shadi Asi's user avatar
  • 157
5 votes
1 answer
4k views

Detect C/C++ command line memory leaks using Instruments

I'm trying to detect memory leaks in C (and C++) programs on macOS. In Linux and Windows, I could do so easily using valgrind, but unfortunately, it's not available on macOS. As I have background ...
OzB's user avatar
  • 2,181
0 votes
0 answers
229 views

Does iOS Instruments miss thread stack deallocations, or is this leak real?

At launch our app starts a large number of threads to asynchronously load files, thus: if( !pthread_create( &_handle,0,run,this ) ){ pthread_detach( _handle ); } According to XCode, all these ...
Peeling's user avatar
  • 366
2 votes
1 answer
466 views

Swift 5 - Simulator launching with white screen - Instruments

I was trying to check the memory leak for my project using Instruments. Although, I could launch instruments but while its running the simulator is launching with white screen only. So that I could ...
ssowri1's user avatar
  • 1,319
3 votes
4 answers
6k views

How to fix memory leaks in iOS applications?

I have found few memory leaks when I am running my application. For your reference, I am sharing the screenshots of Instrument debug logs and also Xcode Debugg memory graph tool. I am not getting what ...
yuvaraju's user avatar
  • 167
4 votes
1 answer
3k views

How to enable network debugging in Xcode debug navigation tab

I am performing network operations but the debug navigator doesn't show anything for the network. code is trivial and works as expected for instance this trivial code downloads a file of 300 mb. takes ...
Avba's user avatar
  • 15.2k
3 votes
0 answers
63 views

Instruments confusing "Growth" indication when calling mach_vm_dealocate

While profiling an application having set generations A, B and C I saw the following happen: When just looking at Generation B (clicking the triangle and drilling down without clicking the arrow) I ...
Darius's user avatar
  • 727
2 votes
1 answer
195 views

Apple's Instruments Sample List

I am trying to understand Apple's Instruments GUI right now, in particular the Sample List view. Here I am monitoring L2 cache misses, and in the Tree View is quite straightforward how to oder ...
senseiwa's user avatar
  • 2,479
1 vote
1 answer
2k views

Cannot find memory leak, possibly due to SwiftUI

Problem I profiled my app and found that I have memory leaks. Unfortunately, I'm unsure how to diagnose it in this case. Here is what the memory leaks show in Instruments: Question It says that the ...
George's user avatar
  • 29.6k
0 votes
1 answer
263 views

Xcode Instruments 10.12.1 showing memory leaks on an default project

Replicate: Create a default 12.2 target Swift 5 project - with nothing changed. Profile with Leaks in Instruments. Tap screen a few times. 66 memory leaks (although the number is not consistent) ...
Mark Jarecki's user avatar
0 votes
0 answers
116 views

Instruments 9.2 font size

Is there a way to increase the size of the 4 point font used in instruments 9?
Logicsaurus Rex's user avatar
4 votes
1 answer
527 views

Xcode 10.2 detects memory leaks in a new single view app

Can anyone reproduce memory leaks in a new and unchanged single view app created with Xcode 10.2.1 (10E1001) / Swift 5 / iOS 12.2 ? How to work seriously with the integrated memory leak tool? Are ...
Pascal's user avatar
  • 1,045
10 votes
2 answers
539 views

App crashes while Recording in Instruments

I am trying to run Instruments on my app, as soon as I click record the app launches and crashes with following error: -[__NSCFString _stringByResolvingSymlinksInPathUsingCache:]: unrecognized ...
iOS Monster's user avatar
  • 2,109
17 votes
1 answer
11k views

Xcode Instruments, Leaks. Meaning of "thunk for @escaping @callee_guaranted() -> ()"

I often see this line in the Stack Trance when trying to track a memory leak in Xcode Instruments: thunk for @escaping @callee_guaranteed () -> () What does it mean? I can't even translate thunk ...
kelin's user avatar
  • 11.7k
22 votes
3 answers
15k views

Xcode Instruments shows Device is offline

I have been trying to run the app to check the performance using Core Animation profiler in Xcode Instruments. Even though the device is online it shows up Device is offline. I tried getting the ...
Pavan kumar C's user avatar
3 votes
3 answers
3k views

Using instruments tool to locate leaks

I am trying to find leaks in my app using the leaks instrument. When the app launches I can see 106 leaks and I am having trouble in finding them. In the image you can see part of the list, but how ...
ironRoei's user avatar
  • 2,189
1 vote
0 answers
59 views

Export signpost summary in Xcode Instruments

I'm trying to export a signpost profiler summary results to text using Instruments. Does anyone knows if this possible?
lopes710's user avatar
  • 365
2 votes
1 answer
778 views

Instruments crashes app with Hardened Runtime on macOS Mojave

I found that Xcode 10 Instruments (Leaks) would fail to attach to a command-line application signed with Hardened Runtime enabled, with the following error: Error: Failed to attach to target ...
craig65535's user avatar
  • 3,533
4 votes
1 answer
934 views

How to debug heavy memory issues on a simple app

I’m facing memory issues in my app and I didn’t find a way to find out yet which objects/classes are using that memory. The app is simple, a view controller with a gallery view of images (grid view ...
Daniel Z.'s user avatar
  • 458

1
2 3 4 5
9