Minor update

This commit is contained in:
Miroslav Stampar
2017-07-05 14:07:21 +02:00
parent d038d027f9
commit c9b3b47d6f
5 changed files with 25 additions and 7 deletions

View File

@@ -13,6 +13,7 @@ import re
import StringIO
import time
from lib.core.bigarray import BigArray
from lib.core.settings import VERSION
# Reference: https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HAR/Overview.html
@@ -27,7 +28,7 @@ class HTTPCollectorFactory:
class HTTPCollector:
def __init__(self):
self.messages = []
self.messages = BigArray()
def collectRequest(self, requestMessage, responseMessage, startTime=None, endTime=None):
self.messages.append(RawPair(requestMessage, responseMessage, startTime, endTime))