Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DYLD_PRINT_STATISTICS not showing anything

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!

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.

Any other suggestions as to why I'm not getting any output from DYLD_PRINT_STATISTICS?

like image 524
deanWombourne Avatar asked Nov 18 '15 09:11

deanWombourne


1 Answers

Looks like you can do it on device if you enable both environment variables in your scheme: DYLD_PRINT_APIS = YES DYLD_PRINT_STATISTICS = YES

Reference: https://github.com/artsy/eigen/issues/586#issuecomment-118606377

like image 95
Corey Floyd Avatar answered Sep 19 '22 12:09

Corey Floyd