add enable for each performance profile

This commit is contained in:
王劲鹏 2021-07-14 11:37:44 +08:00 committed by osborn
parent 560990a39e
commit df204c97ae
2 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,8 @@ NS_ASSUME_NONNULL_BEGIN
- (void)addAnchorHook:(id <DoricPerformanceAnchorHookProtocol>)hook;
- (void)removeAnchorHook:(id <DoricPerformanceAnchorHookProtocol>)hook;
- (void)enable:(bool)enable;
@end
NS_ASSUME_NONNULL_END

View File

@ -51,6 +51,10 @@ - (void)removeAnchorHook:(id)hook {
[self.hooks removeObject:hook];
}
- (void)enable:(bool)enable {
self.enable = enable;
}
- (NSString *)getPrepareAnchor:(NSString *)anchorName {
return [NSString stringWithFormat:@"%@#prepare", anchorName];
}