简体   繁体   中英

How to track response time of transactions in iOS app

Tracing the response time of iOS app how to do it using instrument. Also looking for a tool or way to capture response time of critical transactions in android app.

You can also try to logging the time using NSLog like this:

//log the time
NSDate *methodStart = [NSDate date];

//Do your transaction and when success execute ...

NSDate *methodFinish = [NSDate date];
NSTimeInterval executionTime = [methodFinish timeIntervalSinceDate:methodStart];
NSLog(@"Total time = %f", executionTime);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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