Hi,folks.I just started with XCTrace and before that I used the command-line tools from Instruments.
I don't know if I did something wrong that caused XCTrace to not work properly.
I used a custom template to collect power data and use appium to get the PID,but it couldn't attach process and throws error message
When I use --all-process parameter to record power consumption data, it works.
Xcode version:Xcode12 beta 5
xcrun xctrace record --template /Users/aaron.lin/Library/Application\ Support/Instruments/Templates/BatteryTest.tracetemplate --device b234eb8342b7dbf954d724c7d87da1e7721e8733 --output ./target/iosPerformance/BatteryTest.trace --time-limit 1800000ms --attach 865
I don't know if I did something wrong that caused XCTrace to not work properly.
I used a custom template to collect power data and use appium to get the PID,but it couldn't attach process and throws error message
When I use --all-process parameter to record power consumption data, it works.
Xcode version:Xcode12 beta 5
xcrun xctrace record --template /Users/aaron.lin/Library/Application\ Support/Instruments/Templates/BatteryTest.tracetemplate --device b234eb8342b7dbf954d724c7d87da1e7721e8733 --output ./target/iosPerformance/BatteryTest.trace --time-limit 1800000ms --attach 865
Code Block <p> 2020-09-08 16:06:47.390 xctrace[48276:3335869] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/Instruments/Instruments-64540.143.2/Theming/XRTheme.mm:213 Details: Could not access the resource bundle when loading image named: templateEnergyDiagnostics1_48 Object: <XRTheme> Method: +imageNamed: Thread: <NSThread: 0x7fe9d3509bb0>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2020-09-08 16:06:47.406 xctrace[48276:3335869] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/Instruments/Instruments-64540.143.2/Theming/XRTheme.mm:213 Details: Could not access the resource bundle when loading image named: iPhonePowerTemplates Object: <XRTheme> Method: +imageNamed: Thread: <NSThread: 0x7fe9d3509bb0>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2020-09-08 16:06:47.503 xctrace[48276:3335869] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/Instruments/Instruments-64540.143.2/Theming/XRTheme.mm:213 Details: Could not access the resource bundle when loading image named: templateBlank_48 Object: <XRTheme> Method: +imageNamed: Thread: <NSThread: 0x7fe9d3509bb0>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. Cannot find process for provided pid: 865 <p>