Skip to content

Commit

Permalink
* [ios] remove the timing of network debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yangshengtao committed Jun 17, 2016
1 parent f9d38a6 commit 5b00fe5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,7 @@ - (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)data

NSString *requestID = [self requestIDForTask:dataTask];
PDNetworkResponse *networkResponse = [PDNetworkResponse networkResponseWithURLResponse:response request:[self requestForTask:dataTask]];
/*
PDNetworkResourceTiming *timeline = [[PDNetworkResourceTiming alloc] init];
timeline.requestTime = [NSNumber numberWithInt:0.5];
timeline.proxyStart = [NSNumber numberWithInt:9999];
Expand All @@ -983,7 +984,7 @@ - (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)data
timeline.sendEnd = [NSNumber numberWithInt:5];
timeline.receiveHeadersEnd = [NSNumber numberWithInt:9];
networkResponse.timing = timeline;

*/

[self.domain responseReceivedWithRequestId:requestID
frameId:@"3888.3"
Expand Down Expand Up @@ -1126,6 +1127,8 @@ - (NSString *)PD_responseType;
type = @"Image";
} else if ([contentType rangeOfString:@"json"].length != 0) {
type = @"XHR";
} else if ([contentType rangeOfString:@"javascript"].length != 0) {
type = @"Script";
}

return type;
Expand Down

0 comments on commit 5b00fe5

Please sign in to comment.