一:菜单:Product->Scheme->Edit Scheme->Environment Variables
设置:key:DYLD_PRINT_STATISTICS value:1
Total pre-main time: 907.41 milliseconds (100.0%)
dylib loading time: 210.83 milliseconds (23.2%)
rebase/binding time: 472.17 milliseconds (52.0%)
ObjC setup time: 63.44 milliseconds (6.9%)
initializer time: 160.71 milliseconds (17.7%)
slowest intializers :
libSystem.dylib : 8.22 milliseconds (0.9%)
libMainThreadChecker.dylib : 53.59 milliseconds (5.9%)
MediaServices : 41.68 milliseconds (4.5%)
YiFu : 26.93 milliseconds (2.9%)
二:dyld环境变量
变量值说明
key:DYLD_PRINT_STATISTICS
value:1 Print launch performance statistics
描述:打印启动时间等参数
key:DYLD_PRINT_SEGMENTS
value:1
描述:日志段映射
key:DYLD_PRINT_INITIALIZERS
value:1
描述:日志图像初始化要求
key:DYLD_PRINT_BINDINGS
value:1
描述:日志符号绑定
key:DYLD_PRINT_APIS
value:1
描述:日志dyld API调用(例如,dlopen)
key:DYLD_PRINT_ENV
value:1
描述:打印启动环境变量
key:DYLD_PRINT_OPTS
value:1
描述:打印启动时命令行参数
key:DYLD_PRINT_LIBRARIES_POST_LAUNCH
value:1
描述:日志库加载,但仅在main运行之后
key:DYLD_PRINT_LIBRARIES
value:1
描述:日志库加载
key:DYLD_IMAGE_SUFFIX
value:1
描述:首先搜索带有这个后缀的库
网友评论