How to store or log output of OS Signpost flags

I am trying to store or log the output of signpost end flag so that i can do further work on them without viewing them on instruments. following are the things i have already tried.
  1. Tried to print the output of signpost emit functions such as below.

PSLog(ossignpostintervalbegin(slogHandleAssetLoading, signpostId, "Editor: First Render Complete"))

2. tried to view it in logs under derived data folder but could not find it anywhere.

I just want to either get the data logged by signpost to be stored in array or get printed on console so i can parse the logs of console and fetch it from there.

Hi there,

One option you could have here is to use xctrace tool to export the data.
You can record your Instruments .trace file using Instruments or xctrace record in the Command Line.

Later, you can use xctrace export in order to export relevant signpost data from the trace file. Check out man xctrace for more details.
Tool will export data in XML, you can later post-process it in any way you'd like.

Please let me know here if you have any more follow-up questions or issues when using this approach.


How to store or log output of OS Signpost flags
 
 
Q