VirtualBox

Ignore:
Timestamp:
Jun 2, 2016 3:45:16 PM (9 years ago)
Author:
vboxsync
Message:

wuilogviewer: Optimization and increased the default per-page size from 64KB to 1MB so we don't need to page forward to get to the relevant bits.

Location:
trunk/src/VBox/ValidationKit/testmanager/webui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuilogviewer.py

    r56295 r61416  
    149149        # Got to where we wanted, format the chunk.
    150150        #
    151         sHtml = '\n<div class="tmlog">\n<pre>\n';
     151        asLines = [];
    152152        while True:
    153             sHtml += '<a id="L%d" href="#L%d">%05d</a><a id="O%d"> </a>%s\n' \
    154                    % (iLine, iLine, iLine, offLine, webutils.escapeElem(sLine.rstrip()));
     153            asLines.append('<a id="L%d" href="#L%d">%05d</a><a id="O%d"></a>%s\n' \
     154                           % (iLine, iLine, iLine, offLine, webutils.escapeElem(sLine.rstrip())));
    155155            if offCur >= offEnd:
    156156                break;
     
    161161            if len(sLine) == 0:
    162162                break;
    163         sHtml += '<pre/></div>\n';
    164 
    165         return sHtml;
     163        return '\n<div class="tmlog">\n<pre>\n' + ''.join(asLines) + '<pre/></div>\n';
    166164
    167165
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuimain.py

    r61286 r61416  
    971971        idTestSet       = self.getIntParam(self.ksParamLogSetId,     iMin = 1);
    972972        idLogFile       = self.getIntParam(self.ksParamLogFileId,    iMin = 0,                    iDefault = 0);
    973         cbChunk         = self.getIntParam(self.ksParamLogChunkSize, iMin = 256, iMax = 16777216, iDefault = 65536);
     973        cbChunk         = self.getIntParam(self.ksParamLogChunkSize, iMin = 256, iMax = 16777216, iDefault = 1024*1024);
    974974        iChunk          = self.getIntParam(self.ksParamLogChunkNo,   iMin = 0,
    975975                                           iMax = config.g_kcMbMaxMainLog * 1048576 / cbChunk,    iDefault = 0);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette