iOS:Add PerformanceProfile
This commit is contained in:
@@ -53,6 +53,7 @@ + (instancetype)instance {
|
||||
|
||||
- (void)createContext:(DoricContext *)context script:(NSString *)script source:(NSString *)source {
|
||||
context.contextId = [NSString stringWithFormat:@"%ld", (long) ++self.counter];
|
||||
context.performanceProfile = [[DoricPerformanceProfile alloc] initWithName:context.contextId];
|
||||
dispatch_sync(self.mapQueue, ^() {
|
||||
[self.contextMapTable setObject:context forKey:context.contextId];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user