iOS: add DoricDevPerfVC

This commit is contained in:
pengfei.zhou
2021-07-21 15:05:41 +08:00
committed by osborn
parent 74e9aa0e38
commit 8f50d2d67c
12 changed files with 387 additions and 290 deletions

View File

@@ -18,7 +18,7 @@
// DoricCore
//
// Created by pengfei.zhou on 2021/3/29.
//
//
#import "DoricPerformanceProfile.h"
#import "DoricRegistry.h"
@@ -109,7 +109,7 @@ - (void)print:(NSString *)anchorName {
}
for (id <DoricPerformanceAnchorHookProtocol> hook in self.hooks) {
if ([hook conformsToProtocol:@protocol(DoricPerformanceGlobalAnchorHookProtocol)]) {
[(id <DoricPerformanceGlobalAnchorHookProtocol>) hook onAnchorName:anchorName prepare:end start:end end:end in:self];
[(id <DoricPerformanceGlobalAnchorHookProtocol>) hook onAnchorName:anchorName prepare:prepare start:start end:end in:self];
} else {
[hook onAnchorName:anchorName prepare:prepare start:start end:end];
}