DYLD_PRINT_STATISTICS没有显示任何内容 [英] DYLD_PRINT_STATISTICS not showing anything

查看:1418
本文介绍了DYLD_PRINT_STATISTICS没有显示任何内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图在从静态库迁移到框架之后对应用启动进行分析。我们有30个左右的框架(fyi:cocoapods)所以我想检查它是否影响性能。团队中的轶事测试表明它不是,但我也想要一些数字!

I'm trying to profile app startup after moving from static libraries to frameworks. We have 30 or so frameworks (fyi: cocoapods) so I want to check that it's not affecting performance. Anecdotal testing in the team says that it isn't, but I would like some numbers as well!

我添加了环境变量 DYLD_PRINT_STATISTICS DYLD_PRINT_LIBRARIES 查看链接器正在做什么,但我得到的所有输出来自 DYLD_PRINT_LIBRARIES 变量。我可以看到框架正确加载,但没有得到它们的统计信息。

I've added the environment variables DYLD_PRINT_STATISTICS and DYLD_PRINT_LIBRARIES to see what the linker is doing, but all the output I get is from the DYLD_PRINT_LIBRARIES variable. I can see that the frameworks are loading correctly, but get no statistics from them.

我已经尝试重启设备以确保框架不在内存中已经但是没有帮助。

I've tried restarting the device to make sure that the frameworks aren't in memory already but that hasn't helped.

关于为什么我没有从 DYLD_PRINT_STATISTICS ?

推荐答案

其他标志,如 DYLD_PRINT_BINDINGS 在设备上正常工作, DYLD_PRINT_STATISTICS 似乎只适用于模拟器(对我来说,iOS 9.0)。

While other flags, like DYLD_PRINT_BINDINGS work fine on the device, DYLD_PRINT_STATISTICS only seems to work on the simulator (for me, iOS 9.0).

这个(可能无关的)dyld.cpp版本,来自osx 10.10.5 似乎没有任何明显的设备的 DYLD_PRINT_STATISTICS 除外,尽管有条件编译 TARG整个代码中都有ET_IPHONE_SIMULATOR

In this (possibly unrelated) version of dyld.cpp, from osx 10.10.5 there doesn't seem to be any obvious exclusion of DYLD_PRINT_STATISTICS for devices, although there are conditionally compiled TARGET_IPHONE_SIMULATORs sprinkled throughout the code.

我想这是一个错误。

这篇关于DYLD_PRINT_STATISTICS没有显示任何内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆