简体   繁体   English

对一组Shark性能日志执行一批查询?

[英]Perform a batch of queries on a set of Shark performance logs?

I've been using Shark to benchmark a (very large) application and have a set of features I drill down into each time (eg, focus on one function and remove stacks with particular others to determine the milliseconds for a particular feature on that run). 我一直在使用Shark来对(大型)应用程序进行基准测试,并且每次都会深入研究一组功能(例如,专注于一个功能,并与其他特定功能一起删除堆栈,以确定该次运行中某个特定功能的毫秒数)。 So far, so good. 到现在为止还挺好。

I'd like to write a script that takes in a bunch of shark session files and outputs the results of these queries for each file: is there a way to programmatically interact with Shark, or perhaps a way to understand the session log format? 我想编写一个脚本,它接收一堆shark会话文件并为每个文件输出这些查询的结果:是否可以通过编程方式与Shark进行交互,或者有一种了解会话日志格式的方法?

Thanks! 谢谢!

I think this will be tricky unless you can reverse-engineer the Shark data files. 我认为除非您可以对Shark数据文件进行反向工程,否则这将很棘手。 The only other possibility I can think of is to export the profiles as text and manipulate these (obviously only works if there's enough info in the exported text to do what you need to do.) 我唯一想到的另一种可能性是将配置文件导出为文本并进行处理(显然,只有在导出的文本中有足够的信息来执行您需要做的事情时,该配置文件才有效。)

I would also suggest asking the question again on Apple's PerfOptimization-dev mailing list (PerfOptimization-dev@lists.apple.com) - there are a number of Apple engineers on that list who can usually come up with good advice when it comes to performance and the Apple CHUD tools etc. 我还建议在Apple的PerfOptimization-dev邮件列表 (PerfOptimization-dev@lists.apple.com)上再次询问该问题-该列表上有许多Apple工程师通常可以在性能方面提出很好的建议以及Apple CHUD工具等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM