iOS-Monitor-Platform icon indicating copy to clipboard operation
iOS-Monitor-Platform copied to clipboard

:books: iOS 性能监控 SDK —— Wedjat(华狄特)开发过程的调研和整理

Results 23 iOS-Monitor-Platform issues
Sort by recently updated
recently updated
newest added

想问下获取CPU时, Xcode13调试,通过thread_info获取线程信息失败,有对应的解决办法么?目前看 kr != KERN_SUCCESS的判断去掉就ok了,kr的值在枚举中没有对应的。

感谢分享,收获很大。 文章里有一段 ``` 读者可能会看到有些代码会使用 vm_statistics_data_t 结构体,但是这个结构体是32位机器的,随着 Apple 逐渐放弃对32位应用的支持,所以建议读者还是使用 vm_statistics64_data_t 64位的结构体。 ``` 但我看到14.5的头文件定义里 ``` /* Used by all architectures */ typedef struct vm_statistics *vm_statistics_t; typedef struct vm_statistics vm_statistics_data_t; ``` 是不是实际上用`vm_statistics_data_t`更好一些?

```objc - (NSUInteger)getResidentMemory { struct mach_task_basic_info info; mach_msg_type_number_t count = MACH_TASK_BASIC_INFO_COUNT; int r = task_info(mach_task_self(), MACH_TASK_BASIC_INFO, (task_info_t)& info, & count); if (r == KERN_SUCCESS) { return info.resident_size; } else {...

question

```objc @implementation UIViewController (Hook1) + (void)load { struct rebinding _request_binding = { "CFReadStreamCreateForHTTPRequest", wt_CFReadStreamCreateForHTTPRequest, (void *)&original_CFReadStreamCreateForHTTPRequest}; struct rebinding rebs[]={_request_binding}; rebind_symbols(rebs, 1); } static CFReadStreamRef wt_CFReadStreamCreateForHTTPRequest(CFAllocatorRef __nullable alloc, CFHTTPMessageRef request); CFReadStreamRef...

oc和swift的方法还是有些不相同 谢谢

能发一份网络监控的源码吗, 大神

文章很多内容和头条乐少的文章很相似,逻辑顺序也基本一致。 [移动端监控体系之技术原理剖析](https://www.jianshu.com/p/8123fc17fe0e) 如果有参考的话,给个链接。或者是我想多了,你们异曲同工?

我在使用NSProxy替换NSURLSession原来的的delegate的时候,再使用AFNetwork的AFHTTPSessionManager的GET方法的时候崩溃了,不知道是什么原因,具体代码如下: static void swizzleClassMethod(Class theClass, SEL originalSelector, SEL swizzledSelector) { Method origMethod = class_getClassMethod(theClass, originalSelector); Method newMethod = class_getClassMethod(theClass, swizzledSelector); theClass = object_getClass((id)theClass); if(class_addMethod(theClass, originalSelector, method_getImplementation(newMethod), method_getTypeEncoding(newMethod))) class_replaceMethod(theClass, swizzledSelector, method_getImplementation(origMethod),...

question

苹果在 WWDC 的 [Optimizing App Startup Time](https://developer.apple.com/videos/play/wwdc2016/406/) 给出了定义 > So when you launch an app, we talk about warm and cold launches.And a warm launch is an app where the...

打个小广告:https://xcoder.tips/gpu-utilization/