Post

Replies

Boosts

Views

Activity

Export full callstack/backtrace with `xctrace export`
Hello, When exporting a time CPU profiling .trace with xctrace export --output foo.xml --input PATH/TO/TRACE/FILE.trace --xpath '/trace-toc/run[@number="1"]/data/table[@schema="time-sample"] , I am unable to reconstruct the full callstack/backtrace, despite the GUI doing so. Sample row: <row> <sample-time id="22" fmt="00:00.039.455">39...</sample-time> <thread ref="2"/> <process ref="4"/> <core ref="14"/> <thread-state ref="8"/> <weight ref="9"/> <backtrace id="23" fmt="test::test::foo ← (11 other frames)"> <process ref="4"/> <text-addresses id="24" fmt="frag 1732">4331406713 4331406716</text-addresses> <process ref="4"/> <text-addresses id="25" fmt="frag 1733">4331403 ...</text-addresses> </backtrace> </row> As you can see the backtrace is cropped "(11 other frames)", but according to the backtrace documentation: In extended views, the entire symbolicated backtrace is listed. So how to export that extended view? Alternatively, is it possible to symbolicate the backtrace using the text-addresses list? That question was asked a year ago without answer so far. Best regards
3
2
1.7k
Jun ’22
How to export symbols with `xctrace export`
Hello, After doing a recording with Time Profiler, we know that the xctrace file should already contain all the symbols (and if it doesn't xctrace symbolicate can be used), as the symbols are shown on the Instrument GUI. However we have not found a way to have access to them. This is a very similar question to How can I symbolicate addresses from xctrace run which was unfortunately left unaddressed. Finding how to solve this issue would greatly benefits to instruments-to-gecko used at Snap. Regards,
0
1
920
Dec ’22
Applescript: window API handler crashing in split view
I've a simple Applescript script as following: tell application "Terminal" -- Get the current tab set currentTab to selected tab of first window -- Set the current tab's theme to Homebrew set currentTab's current settings to settings set "Homebrew" end tell which works as expected when Terminal is run as a "normal" window, but fails with the following error when in Split View terminal-color.scpt: execution error: Terminal got an error: AppleEvent handler failed. (-10000) Any way to work around this error?
3
0
370
Aug ’24