add enable for each performance profile
This commit is contained in:
parent
560990a39e
commit
df204c97ae
@ -44,6 +44,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
- (void)addAnchorHook:(id <DoricPerformanceAnchorHookProtocol>)hook;
|
- (void)addAnchorHook:(id <DoricPerformanceAnchorHookProtocol>)hook;
|
||||||
|
|
||||||
- (void)removeAnchorHook:(id <DoricPerformanceAnchorHookProtocol>)hook;
|
- (void)removeAnchorHook:(id <DoricPerformanceAnchorHookProtocol>)hook;
|
||||||
|
|
||||||
|
- (void)enable:(bool)enable;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_END
|
NS_ASSUME_NONNULL_END
|
||||||
|
@ -51,6 +51,10 @@ - (void)removeAnchorHook:(id)hook {
|
|||||||
[self.hooks removeObject:hook];
|
[self.hooks removeObject:hook];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)enable:(bool)enable {
|
||||||
|
self.enable = enable;
|
||||||
|
}
|
||||||
|
|
||||||
- (NSString *)getPrepareAnchor:(NSString *)anchorName {
|
- (NSString *)getPrepareAnchor:(NSString *)anchorName {
|
||||||
return [NSString stringWithFormat:@"%@#prepare", anchorName];
|
return [NSString stringWithFormat:@"%@#prepare", anchorName];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user