mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-29 06:06:52 +08:00
feat(ios): add log when load bundles
This commit is contained in:
committed by
hippy-actions[bot]
parent
4fe7b63f17
commit
7aa44abeb7
@@ -734,6 +734,7 @@ static NSError *executeApplicationScript(NSData *script,
|
||||
HippyPerformanceLogger *performanceLogger,
|
||||
JSGlobalContextRef ctx) {
|
||||
@autoreleasepool {
|
||||
HippyLogInfo(@"load script begin, length %zd for url %@", [script length], [sourceURL absoluteString]);
|
||||
if (isCommonBundle) {
|
||||
[performanceLogger markStartForTag:HippyPLCommonScriptExecution];
|
||||
} else {
|
||||
@@ -760,6 +761,8 @@ static NSError *executeApplicationScript(NSData *script,
|
||||
|
||||
NSError *error = jsError ? HippyNSErrorFromJSErrorRef(jsError, ctx) : nil;
|
||||
// HIPPY_PROFILE_END_EVENT(0, @"js_call");
|
||||
HippyLogInfo(@"load script end,length %zd for url %@, error %@", [script length], [sourceURL absoluteString], [error description]);
|
||||
|
||||
return error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user