Performance

RSS for tag

Improve your app's performance.

Posts under Performance tag

54 Posts
Sort by:
Post not yet marked as solved
0 Replies
415 Views
I'm using xcrun xctrace export --output results.xml --input test_trace.trace --xpath '//trace-toc[1]/run[1]/data[1]/table' to export data from a test run with instruments as part of my app's CI. With Xcode 12 this resulted in an xml file that I could parse relatively quickly, but now with Xcode 13 the export process itself is taking 90+ seconds and generating a 160mb xml file for a 10 second recording. I noticed the table that has increased is the time-sample schema. Just attempting to export this table with --xpath '//trace-toc[1]/run[1]/data[1]/table[4]' takes quite a while. The table has about 790 thousand rows. I'm using a custom instrument based off the time profiler, and still have about the same number of stack trace samples in my output. Did anything change in Xcode 13 that caused instruments to include many more time samples that aren't corresponding to a stack trace? Is it possible to disable this to have fewer time samples in my trace (while preserving the stack trace frequency) so the xml can be parsed quicker?
Posted Last updated
.
Post not yet marked as solved
1 Replies
420 Views
I'm using Xcode 13.0 (13A233). I want to access the "enablePerformanceTestsDiagnostics" feature. When I enter "xcodebuild test -project PerformanceTest.xcodeproj -scheme PerformanceTest -destination "platform=iOS Simulator,id=D43B8013-11A6-4E66-A42A-7174B9109276" -enablePerformanceTestsDiagnostics YES" command in the terminal,the xcresult did not produce the memgraphset.zip file for me. I don't know why this happened, Any one can confirm if this is a bug or give me some hints about my operation.
Posted
by niekaihua.
Last updated
.
Post not yet marked as solved
1 Replies
408 Views
After installing iOS 15, my iPhone battery has been just straight up worse. I am able to get only a minute of screen on time with every 1% of battery consumed. Moreover my phone is plagued with other bugs and random shut down.
Posted
by Varun2004.
Last updated
.
Post not yet marked as solved
1 Replies
953 Views
Hi, i have updated iOS from 14.8 to 15. After that i am facing issues like so many apps are lagging. Those were working perfectly fine on the same day prior to update. IPhone storage is taking 3+ mins to load completely. Apple store is taking couple of secs to load. Iphone is getting extremely heat while using. Charging is also taking longer time. Chat with apple support team, as per their suggestion, updated iOS again using my pc. Still getting the same issue. They are also suggesting to do factory reset as well. Why would i do factory reset and restore again. Just downgrade it to iOS 14.8 again.
Posted Last updated
.
Post not yet marked as solved
3 Replies
768 Views
Hello, Since Xcode 12, I can't see the test report popup when running performance tests. Therefore, I am not able to set the baseline anymore. This used to work fine in Xcode 11. Here's an example: swift func testStoragePerformance() throws {     let application = XCUIApplication()     application.launch()     let storageMetric = XCTStorageMetric(application: application)     self.measure(metrics: [storageMetric]) {       self.runUIFlow(application: application)     }   } When running the test above, Xcode shows the test as successful and that's it... Same thing happens with XCTCPUMetric and XCTMemoryMetric. It seems to only work with XCTClockMetric (baseline can be set then). I am able to reproduce this bug on a new project created in Xcode 12.4. I have reached out to people at Apple and also created a ticket in Feedback Assistant but I've never got any response. Is anyone else experiencing the same issue? Is this a known bug? Thanks
Posted
by raffis.
Last updated
.
Post not yet marked as solved
0 Replies
394 Views
iPhone 12 is adjusted to the minimum in WeChat and the font in the settings is also adjusted to the smallest, it is as big as the standard font of iPhone 11. Why is the gap between the 6.1-inch screen fonts so large? It looks really uncomfortable and affects the user experience.
Posted
by chenyin.
Last updated
.
Post not yet marked as solved
0 Replies
338 Views
I have integration the MetricKit to my project, and had collected the analytics data of MetricKit already, but I'am don't how to convert it to the Chart. Are there some document introduce how to convert the rawData of MetricKit to the chart, such as the power consumption percentage of the app. The Xcode organization tool could show the MetricKit chart, but it not, but this doesn't tell us how to convert MetricKit's rawData to chart
Posted Last updated
.
Post not yet marked as solved
2 Replies
534 Views
Is there anyway we can set the number of threads used during coreML inference? My model is relatively small and the overhead of launching new threads is too expensive. When using TensorFlow C API, forcing to single thread results in significant decrease in CPU usage. (So far coreML with multiple threads has 3 times the cpu usage compares to TensorFlow with single thread). Also, wondering if anyone has compared the performance between TensorFlow in C and coreML?
Posted
by Brianyan.
Last updated
.
Post not yet marked as solved
2 Replies
2.4k Views
Attempting to find nominal CPU clock frequency. Previously have been finding this using sysctlbyname() with name="hw.cpufrequency" or with sysctl() with name[0]=CTLHW and name[1]=HWCPU_FREQ. I also notice that processor speed no longer shows in 'About this Mac'. Anyone know I programmatically find this value on an M1 machine?
Posted Last updated
.
Post not yet marked as solved
2 Replies
700 Views
Since Big Sur, my dock is unhiding too quickly (although everything else since updating is running too slowly). I need a bit of delay when I am using the mouse on a bottom scrollbar. Otherwise, I keep accidentally dragging my icons around in my dock. Any way to slow down or delay the unhiding of my dock?
Posted
by curtpatt.
Last updated
.
Post marked as solved
10 Replies
1.3k Views
Since upgrading to Big Sur, sending AppleScript "do JavaScript" command to Safari runs extremely slowly. For example: tell application "Safari" set rslts to do JavaScript "document.title;" in document 1 end tell ... this used to take a split second in prior versions of the MacOS. Since upgrading to Big Sur, running this script results in a spinning pinwheel, the Safari's CPU usage ramps up to 100% and the command takes about 10 seconds to complete.
Posted
by Trillion.
Last updated
.
Post not yet marked as solved
0 Replies
336 Views
system dead lock sometimes ,is there anyone who can help me , i v got none idea. Incident Identifier: DD02C50E-9062-4019-B5B6-098C25E2CF45 CrashReporter Key: 3d6dae79d882333702c0582e86fb6adafae3dd8c Hardware Model: iPhone7,2 Process: xxxx [3454] Path: /private/var/containers/Bundle/Application/BB2155C4-7AE2-4C09-8A2A-982B6825D576/xxxx.app/xxxx Identifier: xxxxx Version: 206 (1.0.0) Code Type: ARM-64 (Native) Role: Non UI Parent Process: launchd [1] Coalition: xxxxxx [4505] Date/Time: 2021-07-22 17:44:57.9918 +0800 Launch Time: 2021-07-22 17:36:19.4760 +0800 OS Version: iPhone OS 12.4.8 (16G201) Baseband Version: 7.80.04 Report Version: 104 Exception Type: EXC_CRASH (SIGKILL) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d Termination Description: SPRINGBOARD, scene-update watchdog transgression: xxxxx exhausted real (wall clock) time allowance of 10.00 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-update | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 6.300 (user 6.300, system 0.000), 31% CPU", | "Elapsed application CPU time (seconds): 0.000, 0% CPU" | ) Triggered by Thread: 0 Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libsystem_platform.dylib 0x00000002187ec3f0 os_unfair_lock_lock_with_options$VARIANT$mp + 20 1 libsystem_malloc.dylib 0x00000002187ba454 small_malloc_should_clear + 152 2 libsystem_malloc.dylib 0x00000002187b7c2c szone_malloc_should_clear + 132 3 libsystem_malloc.dylib 0x00000002187c0ca0 malloc_zone_calloc + 140 4 libsystem_malloc.dylib 0x00000002187c1520 calloc + 32 5 libobjc.A.dylib 0x0000000217db562c cache_t::reallocate+ 13868 (unsigned int, unsigned int) + 52 6 libobjc.A.dylib 0x0000000217db5b2c cache_fill + 212 7 libobjc.A.dylib 0x0000000217dc2940 lookUpImpOrForward + 1168 8 libobjc.A.dylib 0x0000000217dcf858 _objc_msgSend_uncached + 56 9 UIFoundation 0x000000022322ff00 +[_UIFontCacheKey fontCacheKeyWithFontName:traits:pointSize:] + 64 10 UIFoundation 0x00000002232b7188 UINewFontIgnoringLinkCheck + 128 11 UIFoundation 0x00000002232259a0 +[UIFont systemFontOfSize:traits:] + 28 12 xxxxx 0x00000001017d848c +[xxxxLoadingWithErrorTipsViewConfig gradientLightConfig] + 19039372 (KSLoadingWithErrorTipsView.m:74)
Posted Last updated
.
Post marked as solved
1 Replies
714 Views
Hi! I'm desperately looking for the documentation on using MetricKit REST API, and download diagnostics and metrics data on my server for analysis and visualisations. At the moment, there's very little of documentation on MetricKit, and it's limited to the usage on device. Please, help me to find the documentation on how to use REST API for it 🙏 There's awesome video from WWDC2020 about it (https://developer.apple.com/wwdc20/10057), but the promised documentation can not be found 😅
Posted
by osxd.
Last updated
.
Post not yet marked as solved
2 Replies
661 Views
I've been having this issue with X-Code for years and have never found a fix. I've seen many people post this issue but no solutions that work. When typing in X-Code, ever few letters I type the editor just hangs, sometimes the rainbow beachball spinner even comes up. Just pressing return takes a second to complete. Any ideas? There's got to be a fix for this
Posted
by coderkid.
Last updated
.