VirtualBox

忽略:
時間撮記:
2016-7-7 上午10:06:39 (8 年 以前)
作者:
vboxsync
訊息:

reporter.doPollWork: Added debug string to see who is calling.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/ValidationKit/testdriver/reporter.py

    r62099 r62100  
    290290    #
    291291
    292     def doPollWork(self):
     292    def doPollWork(self, sDebug = None):
    293293        """
    294294        Check if any pending stuff expired and needs doing.
    295295        """
     296        _ = sDebug;
    296297        return None;
    297298
     
    889890        return False;
    890891
    891     def _xmlFlushIfNecessary(self, fPolling = False):
     892    def _xmlFlushIfNecessary(self, fPolling = False, sDebug = None):
    892893        """Flushes the XML back log if necessary."""
    893894        tsNow = utils.timestampSecond();
     
    896897        if fPolling is not True:
    897898            self._secTsXmlLast = tsNow;
    898         self._writeOutput('xml-debug/%s: %s s since flush, %s s since poll'
    899                           % (len(self._asXml), cSecs, cSecsLast,)); # temporarily while debugging flush/poll problem.
     899        self._writeOutput('xml-debug/%s: %s s since flush, %s s since poll %s'
     900                          % (len(self._asXml), cSecs, cSecsLast, sDebug if sDebug is not None else '', )); # temporarily
    900901
    901902        # Absolute flush thresholds.
     
    941942        return None;
    942943
    943     def doPollWork(self):
     944    def doPollWork(self, sDebug = None):
    944945        if len(self._asXml) > 0:
    945946            g_oLock.acquire();
    946             self._xmlFlushIfNecessary(fPolling = True);
     947            self._xmlFlushIfNecessary(fPolling = True, sDebug = sDebug);
    947948            g_oLock.release();
    948949        return None;
     
    13791380    return cErrors;
    13801381
    1381 def doPollWork():
     1382def doPollWork(sDebug = None):
    13821383    """
    13831384    This can be called from wait loops and similar to make the reporter call
    13841385    home with pending XML and such.
    13851386    """
    1386     g_oReporter.doPollWork();
     1387    g_oReporter.doPollWork(sDebug);
    13871388    return None;
    13881389
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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