繁体   English   中英

如何在 iOS 应用程序中跟踪事务的响应时间

[英]How to track response time of transactions in iOS app

跟踪 iOS 应用程序的响应时间如何使用仪器来做到这一点。 也在寻找一种工具或方法来捕获 android 应用程序中关键事务的响应时间。

您也可以尝试使用 NSLog 记录时间,如下所示:

//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);

暂无
暂无

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

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